HttpServerChannel.ChannelSinkChain 属性

定义

获取当前信道正在使用的信道接收器链。

public:
 property System::Runtime::Remoting::Channels::IServerChannelSink ^ ChannelSinkChain { System::Runtime::Remoting::Channels::IServerChannelSink ^ get(); };
public System.Runtime.Remoting.Channels.IServerChannelSink ChannelSinkChain { get; }
member this.ChannelSinkChain : System.Runtime.Remoting.Channels.IServerChannelSink
Public ReadOnly Property ChannelSinkChain As IServerChannelSink

属性值

IServerChannelSink

当前信道正在使用的信道接收器链。

实现

示例

下面的代码示例说明如何使用 ChannelSinkChain 属性。 此代码示例是为类提供的大型示例的 HttpServerChannel 一部分。

// Get the channel's sink chain.
IServerChannelSink^ sinkChain = serverChannel->ChannelSinkChain;
Console::WriteLine( L"The type of the server channel's sink chain is {0}.", sinkChain->GetType() );
// Get the channel's sink chain.
IServerChannelSink sinkChain = serverChannel.ChannelSinkChain;
Console.WriteLine(
    "The type of the server channel's sink chain is {0}.",
    sinkChain.GetType().ToString());

适用于