This documentation is archived and is not being maintained.

ChannelServices.GetChannel Method

Returns a registered channel with the specified name.

[Visual Basic]
Public Shared Function GetChannel( _
   ByVal name As String _
) As IChannel
[C#]
public static IChannel GetChannel(
 string name
);
[C++]
public: static IChannel* GetChannel(
 String* name
);
[JScript]
public static function GetChannel(
   name : String
) : IChannel;

Parameters

name
The channel name.

Return Value

An interface to a registered channel, or a null reference (Nothing in Visual Basic) if the channel is not registered.

Exceptions

Exception Type Condition
SecurityException The immediate caller does not have infrastructure permission.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ChannelServices Class | ChannelServices Members | System.Runtime.Remoting.Channels Namespace

Show: