This documentation is archived and is not being maintained.

IpcServerChannel.GetChannelUri Method

Returns the URI of the current channel.

Namespace: System.Runtime.Remoting.Channels.Ipc
Assembly: System.Runtime.Remoting (in system.runtime.remoting.dll)

public string GetChannelUri ()
public String GetChannelUri ()
public function GetChannelUri () : String
Not applicable.

Return Value

A String that contains the URI of the channel.

The channel URI is used by the client to specify a remote server channel.

The following code example illustrates how to use the GetChannelUri method.

Console.WriteLine("Listening on {0}", serverChannel.GetChannelUri());

Console.WriteLine("Listening on {0}", serverChannel.GetChannelUri());

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: