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());

適用於