ClientRuntime.ManualAddressing 属性

定义

获取或设置一个值,该值指示客户端是否将寻址标头添加到请求-回复消息。Gets or sets a value that indicates whether the client adds addressing headers to request-reply messages.

public:
 property bool ManualAddressing { bool get(); void set(bool value); };
public bool ManualAddressing { get; set; }
member this.ManualAddressing : bool with get, set
Public Property ManualAddressing As Boolean

属性值

Boolean

如果客户端不添加任何寻址标头,则为 true;否则为 falsetrue if the client does not add any addressing headers; otherwise, false. 默认值为 falseThe default is false.

注解

如果要防止客户端将“消息 ID”和“答复”寻址标头添加到请求/响应消息,请将 ManualAddressing 属性设置为 true,以便您的应用程序可以控制这些标头。Set the ManualAddressing property to true if you want to prevent the client from adding Message ID and Reply-To addressing headers to request/response messages so that your application can control these headers.

备注

如果 ManualAddressingtrue,则客户端不支持双工通道上的请求-回复操作。If ManualAddressing is true, the client does not support request-reply operations over a duplex channel.

适用于