RemotingServices.GetEnvoyChainForProxy Method (MarshalByRefObject)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns a chain of envoy sinks that should be used when sending messages to the remote object represented by the specified proxy.

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

public static IMessageSink GetEnvoyChainForProxy(
	MarshalByRefObject obj


Type: System.MarshalByRefObject

The proxy of the remote object that requested envoy sinks are associated with.

Return Value

Type: System.Runtime.Remoting.Messaging.IMessageSink

A chain of envoy sinks associated with the specified proxy.

Exception Condition

The immediate caller does not have infrastructure permission.

Envoy sinks are sinks sent along with the ObjRef of an object that is used when returning messages to that object. The current method returns the envoy sinks that are used during communication between the proxy of the object and the object itself.


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

.NET Framework
Available since 1.1
Return to top