HttpServerChannel.WantsToListen Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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);