你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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