ClientRuntime.ChannelInitializers 属性

定义

获取通道初始值设定项对象的集合,这些对象用于自定义与客户端关联的通道。

public:
 property System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::IChannelInitializer ^> ^ ChannelInitializers { System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::IChannelInitializer ^> ^ get(); };
public System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.IChannelInitializer> ChannelInitializers { get; }
member this.ChannelInitializers : System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.IChannelInitializer>
Public ReadOnly Property ChannelInitializers As SynchronizedCollection(Of IChannelInitializer)

属性值

SynchronizedCollection<IChannelInitializer>

IChannelInitializer 实现的集合。

注解

使用 ChannelInitializers 属性来添加自定义 IChannelInitializer 对象,该对象可以检查创建时与客户端关联的通道,在通道上注册事件,以及使用 IExtension<T> 将状态与该通道相关联。

适用于