Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IInstanceContextInitializer::Initialize Method (InstanceContext^, Message^)

 

Provides the ability to modify the newly created InstanceContext object.

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

void Initialize(
	InstanceContext^ instanceContext,
	Message^ message
)

Parameters

instanceContext
Type: System.ServiceModel::InstanceContext^

The system-supplied instance context.

message
Type: System.ServiceModel.Channels::Message^

The message that triggered the creation of the instance context.

The Initialize method is called when an InstanceContext object is created. Typically this method is used to attach an extension so that custom data can be accessed throughout an application.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft