IContributeObjectSink.GetObjectSink(MarshalByRefObject, IMessageSink) 方法

定义

将所提供的服务器对象的消息接收器连接到给定的接收器链前面。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 System::Runtime::Remoting::Messaging::IMessageSink ^ GetObjectSink(MarshalByRefObject ^ obj, System::Runtime::Remoting::Messaging::IMessageSink ^ nextSink);
public System.Runtime.Remoting.Messaging.IMessageSink GetObjectSink (MarshalByRefObject obj, System.Runtime.Remoting.Messaging.IMessageSink nextSink);
[System.Security.SecurityCritical]
public System.Runtime.Remoting.Messaging.IMessageSink GetObjectSink (MarshalByRefObject obj, System.Runtime.Remoting.Messaging.IMessageSink nextSink);
abstract member GetObjectSink : MarshalByRefObject * System.Runtime.Remoting.Messaging.IMessageSink -> System.Runtime.Remoting.Messaging.IMessageSink
[<System.Security.SecurityCritical>]
abstract member GetObjectSink : MarshalByRefObject * System.Runtime.Remoting.Messaging.IMessageSink -> System.Runtime.Remoting.Messaging.IMessageSink
Public Function GetObjectSink (obj As MarshalByRefObject, nextSink As IMessageSink) As IMessageSink

参数

obj
MarshalByRefObject

提供要连接到给定的接收器链前面的消息接收器的服务器对象。

nextSink
IMessageSink

到目前为止组成的接收链。

返回

复合接收器链。

属性

适用于