共用方式為


DispatchRuntime.InstanceContextInitializers 屬性

定義

取得 IInstanceContextInitializer 物件的集合,此集合可在初次建立 InstanceContext 物件時用於檢查或修改該物件。

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

屬性值

型別 SynchronizedCollection<T>IInstanceContextInitializer 物件。

備註

使用 InstanceContextInitializers 屬性來新增自訂初始設定式,此初始設定式可在初次建立 InstanceContext 物件時用來檢查或修改該物件。 InstanceContext 物件的建立頻率是由 InstanceContextMode 屬性所控制。

適用於