Share via


HttpPipeline.CreateHttpMessagePropertiesScope Method

Definition

Creates a scope in which all HttpMessages would have provided properties.

public static IDisposable CreateHttpMessagePropertiesScope (System.Collections.Generic.IDictionary<string,object?> messageProperties);
static member CreateHttpMessagePropertiesScope : System.Collections.Generic.IDictionary<string, obj> -> IDisposable
Public Shared Function CreateHttpMessagePropertiesScope (messageProperties As IDictionary(Of String, Object)) As IDisposable

Parameters

messageProperties
IDictionary<String,Object>

Properties to be added to HttpMessages

Returns

The IDisposable instance that needs to be disposed when properties shouldn't be used anymore.

Applies to