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.

IInstanceContextProvider::InitializeInstanceContext Method (InstanceContext^, Message^, IContextChannel^)

 

Called when null is returned from the GetExistingInstanceContext method.

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

void InitializeInstanceContext(
	InstanceContext^ instanceContext,
	Message^ message,
	IContextChannel^ channel
)

Parameters

instanceContext
Type: System.ServiceModel::InstanceContext^

The new System.ServiceModel::InstanceContext object.

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

The incoming message.

channel
Type: System.ServiceModel::IContextChannel^

The channel that received the message.

InitializeInstanceContext is called when GetExistingInstanceContext returns null and a new InstanceContext object is created. This method is called to notify you that a new InstanceContext has been created.

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