다음을 통해 공유


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);

적용 대상