HttpServerChannel.WantsToListen 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會得到一個布林值,表示是否 IChannelReceiverHook 想接入外部監聽器服務。
public:
property bool WantsToListen { bool get(); void set(bool value); };
public bool WantsToListen { get; set; }
member this.WantsToListen : bool with get, set
Public Property WantsToListen As Boolean
屬性值
一個布林值,表示是否 IChannelReceiverHook 想接入外部監聽服務。
範例
以下程式碼範例說明如何使用該 WantsToListen 屬性。 此程式碼範例是本類別更大範例 HttpServerChannel 的一部分。
// See if the channel wants to listen.
bool wantsToListen = serverChannel->WantsToListen;
Console::WriteLine( L"The value of WantsToListen is {0}.", wantsToListen );
// See if the channel wants to listen.
bool wantsToListen = serverChannel.WantsToListen;
Console.WriteLine(
"The value of WantsToListen is {0}.",
wantsToListen);