IChannelReceiverHook.ChannelSinkChain 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取当前信道正在使用的信道接收器链。
public:
property System::Runtime::Remoting::Channels::IServerChannelSink ^ ChannelSinkChain { System::Runtime::Remoting::Channels::IServerChannelSink ^ get(); };
public System.Runtime.Remoting.Channels.IServerChannelSink ChannelSinkChain { get; }
public System.Runtime.Remoting.Channels.IServerChannelSink ChannelSinkChain { [System.Security.SecurityCritical] get; }
member this.ChannelSinkChain : System.Runtime.Remoting.Channels.IServerChannelSink
[<get: System.Security.SecurityCritical>]
member this.ChannelSinkChain : System.Runtime.Remoting.Channels.IServerChannelSink
Public ReadOnly Property ChannelSinkChain As IServerChannelSink
属性值
当前信道正在使用的信道接收器链。
- 属性
例外
直接调用方没有基础结构权限。
示例
ref class CustomChannel: public BaseChannelWithProperties, public IChannelReceiverHook, public IChannelReceiver, public IChannel, public IChannelSender
{
public:
property IServerChannelSink^ ChannelSinkChain
{
// TransportSink is a private class defined within CustomChannel.
virtual IServerChannelSink^ get()
{
return transportSink->NextChannelSink;
}
}
// Rest of CustomChannel's implementation...
class CustomChannel : BaseChannelWithProperties, IChannelReceiverHook,
IChannelReceiver, IChannel, IChannelSender {
// TransportSink is a private class defined within CustomChannel.
TransportSink transportSink;
public IServerChannelSink ChannelSinkChain {
get { return transportSink.NextChannelSink; }
}
// Rest of CustomChannel's implementation...
Class CustomChannel
Inherits BaseChannelWithProperties
Implements IChannelReceiverHook, IChannelReceiver, IChannel, IChannelSender
' TransportSink is a private class defined within CustomChannel.
Private myTransportSink As TransportSink
Public ReadOnly Property ChannelSinkChain() As IServerChannelSink Implements IChannelReceiverHook.ChannelSinkChain
Get
Return myTransportSink.NextChannelSink
End Get
End Property
' Rest of CustomChannel's implementation...