This documentation is archived and is not being maintained.

IChannel.ChannelPriority Property

Gets the priority of the channel.

[Visual Basic]
ReadOnly Property ChannelPriority As Integer
int ChannelPriority {get;}
__property int get_ChannelPriority();
function get ChannelPriority() : int;

Property Value

An integer indication the priority of the channel.


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


Higher numbers indicate higher priority, so a channel with priority of 50 has a higher priority than a channel with priority 25. The cross appdomain channel has a priority of 100.

Client channels with higher priority are given the first chance to connect to a remote object specified by a URL or a particular channel data entry from an ObjRef.

For server channels, the priority indicates the order in which their channel data will appear in an ObjRef, which in turn affects the order in which clients will try to connect to the server object. If the server is listening on an HTTP channel with priority 50 and a TCP channel with priority 25 and the client has registered both an HTTP and TCP channel, then the client will use the HTTP channel to talk to the server.


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

IChannel Interface | IChannel Members | System.Runtime.Remoting.Channels Namespace | HttpChannel | HttpServerChannel | HttpClientChannel | TcpChannel | TcpServerChannel | TcpClientChannel