ChannelDispatcher.ReceiveContextEnabled 屬性

定義

取得或設定是否已啟用 ReceiveContext。Gets or sets whether ReceiveContext is enabled.

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

屬性值

Boolean

如果已啟用 ReceiveContext,則為 true,否則為 falsetrue if ReceiveContext is enabled; otherwise, false.

備註

ReceiveContext 會控制服務處理訊息的方式,例如在需要時鎖定訊息。The ReceiveContext controls the manner in which messages are handled by the service, for example locking of the message as long as needed.

適用於