Επεξεργασία

Κοινή χρήση μέσω


DispatchRuntime.InstanceContextInitializers Property

Definition

Gets a collection of IInstanceContextInitializer objects that can be used to inspect or modify an InstanceContext object when it is first created.

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)

Property Value

A SynchronizedCollection<T> object of type IInstanceContextInitializer.

Remarks

Use the InstanceContextInitializers property to add a custom initializer that can inspect or modify an InstanceContext object when it is first created. The frequency with which InstanceContext objects are created is controlled by the InstanceContextMode property.

Applies to