共用方式為


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> 使狀態與通道產生關聯。

適用於