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...