HttpServerChannel.WantsToListen Propriété

Définition

Obtient une valeur booléenne qui indique si IChannelReceiverHook les souhaits doivent être connectés au service d’écouteur externe.

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

Valeur de propriété

Valeur booléenne qui indique si IChannelReceiverHook les souhaits doivent être connectés au service d’écouteur externe.

Exemples

L’exemple de code suivant montre comment utiliser la WantsToListen propriété. Cet exemple de code fait partie d’un exemple plus grand fourni pour la HttpServerChannel classe.

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

S’applique à