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
public static IChannel GetChannel(
 string name
public: static IChannel* GetChannel(
 String* name
public static function GetChannel(
   name : String
) : IChannel;


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.


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


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