次の方法で共有


IChannelReceiverHook.ChannelSinkChain プロパティ

定義

現在のチャネルが使用しているチャネル シンク チェインを取得します。

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

適用対象