TcpServerChannel.GetChannelUri 方法

定义

返回当前信道的 URI。

public:
 System::String ^ GetChannelUri();
public string GetChannelUri ();
member this.GetChannelUri : unit -> string
Public Function GetChannelUri () As String

返回

当前信道的 URI。

示例

下面的代码示例演示如何使用此方法。

// Display the channel's URI.
Console::WriteLine( L"The channel URI is {0}.",
   channel->GetChannelUri() );
// Display the channel's URI.
Console.WriteLine("The channel URI is {0}.",
    channel.GetChannelUri());

适用于