HttpServerChannel.GetChannelUri Método

Definição

Retorna o URI do canal atual.Returns the URI of the current channel.

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

Retornos

String

O URI do canal atual.The URI of the current channel.

Exemplos

O exemplo de código a seguir mostra como usar o método GetChannelUri.The following code example shows how to use the GetChannelUri method. Este exemplo de código faz parte de um exemplo maior fornecido para a HttpServerChannel classe.This code example is part of a larger example provided for the HttpServerChannel class.

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

Aplica-se a