Partage via


IpcServerChannel.ChannelName Propriété

Définition

Obtient le nom du canal actuel.

public:
 property System::String ^ ChannelName { System::String ^ get(); };
public string ChannelName { get; }
member this.ChannelName : string
Public ReadOnly Property ChannelName As String

Valeur de propriété

Instance String qui contient le nom du canal.

Implémente

Exemples

L’exemple de code suivant montre comment utiliser la ChannelName propriété.

// Show the name of the channel.
Console::WriteLine( L"The name of the channel is {0}.",serverChannel->ChannelName );
// Show the name of the channel.
Console.WriteLine("The name of the channel is {0}.",
    serverChannel.ChannelName);

Remarques

Chaque canal inscrit a un nom unique. Le nom est utilisé pour récupérer un canal spécifique lors de l’appel de la GetChannel méthode. Le nom par défaut est « ipc server ».

S’applique à