Partage via


HttpServerChannel.WantsToListen Propriété

Définition

Obtient une valeur booléenne indiquant si IChannelReceiverHook souhaite être raccordé à l'é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é

Boolean

Valeur booléenne qui indique si IChannelReceiverHook veut être raccordé à l'écouteur externe.

Exemples

L'exemple de code suivant montre comment utiliser la propriété WantsToListen. 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 à