This documentation is archived and is not being maintained.

DispatchRuntime.InstanceContextInitializers Property

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

Namespace: System.ServiceModel.Dispatcher
Assembly: System.ServiceModel (in system.servicemodel.dll)

public SynchronizedCollection<IInstanceContextInitializer> InstanceContextInitializers { get; }
/** @property */
public SynchronizedCollection<IInstanceContextInitializer> get_InstanceContextInitializers ()

public function get InstanceContextInitializers () : SynchronizedCollection<IInstanceContextInitializer>

Not applicable.

Property Value

A SynchronizedCollection object of type IInstanceContextInitializer.

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: