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

PipelineMessage.SetProperty(Type, Object) Method

Definition

Set a property in the property bag for this PipelineMessage instance. Message properties are used to govern the behavior of specific policies in the ClientPipeline. Please refer to documentation for a specific PipelinePolicy to understand what properties it supports.

public void SetProperty (Type key, object? value);
member this.SetProperty : Type * obj -> unit
Public Sub SetProperty (key As Type, value As Object)

Parameters

key
Type

The key for the property in the message's property bag.

value
Object

The value of the property.

Applies to