docs
docs copied to clipboard
This repository contains .NET Documentation.
Contributes to #42696 --- #### Internal previews | 📄 File | 🔗 Preview link | |:--|:--| | [docs/core/compatibility/9.0.md](https://github.com/dotnet/docs/blob/3b4ccd883cd01cca2930705d487cb4758df6ac51/docs/core/compatibility/9.0.md) | [docs/core/compatibility/9.0](https://review.learn.microsoft.com/en-us/dotnet/core/compatibility/9.0?branch=pr-en-us-42847) | | [docs/core/compatibility/networking/9.0/enumconverter.md](https://github.com/dotnet/docs/blob/3b4ccd883cd01cca2930705d487cb4758df6ac51/docs/core/compatibility/networking/9.0/enumconverter.md) | [docs/core/compatibility/networking/9.0/enumconverter](https://review.learn.microsoft.com/en-us/dotnet/core/compatibility/networking/9.0/enumconverter?branch=pr-en-us-42847) |
This page gives an example using Throw system.exception, while [this page](https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/exceptions/creating-and-throwing-exceptions?source=recommendations) says not to throw system.exception. --- #### Document Details ⚠ *Do not edit this section. It is required for...
### Description `HttpClientFactory` allows you to configure `HttpMessageHandler` pipeline for named and typed `HttpClient`s. The "inner-most" handler -- the one that actually sends the request on the wire -- is...
### Type of issue Typo ### Description From https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8/sdk#code-analysis > Throw helpers are simpler **and more efficient** than an if block constructing a new exception instance. Having look at https://github.com/dotnet/runtime/blob/5535e31a712343a63f5d7d796cd874e563e5ac14/src/libraries/System.Private.CoreLib/src/System/ArgumentNullException.cs,...
### Type of issue Other (describe below) ### Description Currently, adding a member to an interface is disallowed. I would like to propose that adding a static non-abstract, non-virtual member...
I have added the following two clarifications: 1. `NativeLibrary` can be used more than once. Originally I thought that it can only be used for the library specified in `DirectPInvoke`,...
Model Builder is currently still in preview, which is why the [documentation](https://docs.microsoft.com/en-us/dotnet/machine-learning/tutorials/object-detection-model-builder) is most likely not yet complete. However, this documentation uses the [VoTT](https://github.com/microsoft/VoTT) software, which can be downloaded from...
### Description When implementing [HttpClient Metrics](https://learn.microsoft.com/en-us/dotnet/fundamentals/networking/telemetry/metrics) in .NET 8, `server.port` was introduced as a [Conditionally Required](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/#conditionally-required) attribute in accordance with the state of the standard at that time, meaning that...
### Description In .NET 9, the default behavior of `EventSource` events emitted by `HttpClient` / `SocketsHttpHandler` has been modified to scrub query strings (`EventSource` name: `System.Net.Http`). This change is aimed...
### Description In .NET 9, the default implementation of `IHttpClientFactory` logs and log scopes has been modified to scrub query strings when logging Uri information. This change is aimed at...