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

SynchronizedCollection<T> 类型的一个 IInstanceContextInitializer 对象。

注解

使用 InstanceContextInitializers 属性可添加自定义初始值设定项,该自定义初始值设定项可在首次创建 InstanceContext 对象时检查或修改该对象。 创建 InstanceContext 对象的频率由 InstanceContextMode 属性来控制。

适用于