Share via


HttpServerChannel.GetChannelUri 方法

定义

返回当前信道的 URI。

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

返回

当前信道的 URI。

示例

下面的代码示例说明如何使用 GetChannelUri 方法。 此代码示例是为 HttpServerChannel 类提供的一个更大示例的一部分。

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

适用于