共用方式為


HttpServerChannel.WantsToListen 屬性

定義

會得到一個布林值,表示是否 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);

適用於