Düzenle

Aracılığıyla paylaş


IInstanceContextInitializer.Initialize(InstanceContext, Message) Method

Definition

Provides the ability to modify the newly created InstanceContext object.

public:
 void Initialize(System::ServiceModel::InstanceContext ^ instanceContext, System::ServiceModel::Channels::Message ^ message);
public void Initialize (System.ServiceModel.InstanceContext instanceContext, System.ServiceModel.Channels.Message message);
abstract member Initialize : System.ServiceModel.InstanceContext * System.ServiceModel.Channels.Message -> unit
Public Sub Initialize (instanceContext As InstanceContext, message As Message)

Parameters

instanceContext
InstanceContext

The system-supplied instance context.

message
Message

The message that triggered the creation of the instance context.

Remarks

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.

Applies to