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

適用対象