Lire en anglais Modifier

Partager via


HttpDiagnosticsHttpRequestMessageExtensions.SetRequestMetadata Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Sets metadata for outgoing requests to be used for telemetry purposes.

C#
public static void SetRequestMetadata(this System.Net.Http.HttpRequestMessage request, Microsoft.Extensions.Http.Diagnostics.RequestMetadata metadata);

Parameters

metadata
RequestMetadata

Metadata for the request.

Applies to

Produit Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)