次の方法で共有


IChannelReceiverHook.ChannelSinkChain プロパティ

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

ReadOnly Property ChannelSinkChain As IServerChannelSink
[C#]
IServerChannelSink ChannelSinkChain {get;}
[C++]
__property IServerChannelSink* get_ChannelSinkChain();
[JScript]
function get ChannelSinkChain() : IServerChannelSink;

プロパティ値

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

例外

例外の種類 条件
SecurityException 直前の呼び出し元に、インフラストラクチャ アクセス許可がありません。

使用例

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

[C#] 
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...

[C++] 
__gc class CustomChannel : public BaseChannelWithProperties, public IChannelReceiverHook,
public IChannelReceiver, public IChannel, public IChannelSender 
{
    // TransportSink is a private class defined within CustomChannel.
public:
    __property IServerChannelSink* get_ChannelSinkChain()
    {
        return transportSink->NextChannelSink;
    }

    // Rest of CustomChannel's implementation...

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

IChannelReceiverHook インターフェイス | IChannelReceiverHook メンバ | System.Runtime.Remoting.Channels 名前空間