This documentation is archived and is not being maintained.

ChannelServices.UnregisterChannel Method

Unregisters a particular channel from the registered channels list.

[Visual Basic]
Public Shared Sub UnregisterChannel( _
   ByVal chnl As IChannel _
)
[C#]
public static void UnregisterChannel(
 IChannel chnl
);
[C++]
public: static void UnregisterChannel(
 IChannel* chnl
);
[JScript]
public static function UnregisterChannel(
   chnl : IChannel
);

Parameters

chnl
The channel to unregister.

Exceptions

Exception Type Condition
ArgumentNullException The chnl parameter is a null reference (Nothing in Visual Basic).
RemotingException The channel is not registered.
SecurityException At least one of the callers higher in the callstack does not have permission to configure remoting types and channels.

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: