IServerChannelSinkProvider.Next Property

 

Gets or sets the next sink provider in the channel sink provider chain.

Namespace:   System.Runtime.Remoting.Channels
Assembly:  mscorlib (in mscorlib.dll)

IServerChannelSinkProvider Next {
	[SecurityCriticalAttribute]
	get;
	[SecurityCriticalAttribute]
	set;
}

Property Value

Type: System.Runtime.Remoting.Channels.IServerChannelSinkProvider

The next sink provider in the channel sink provider chain.

Exception Condition
SecurityException

The immediate caller does not have infrastructure permission.

IDictionary prop = new Hashtable();
prop["port"] = 9000;

IClientChannelSinkProvider clientChain = new BinaryClientFormatterSinkProvider();

IServerChannelSinkProvider serverChain = new SoapServerFormatterSinkProvider();
serverChain.Next = new BinaryServerFormatterSinkProvider();

ChannelServices.RegisterChannel(new HttpChannel(prop, clientChain, serverChain));

SecurityPermission

for operating with infrastructure code. Demand value: SecurityAction.LinkDemand; Permission value: SecurityPermissionFlag.Infrastructure

.NET Framework
Available since 1.1
Return to top
Show: