IInstanceContextInitializer.Initialize(InstanceContext, Message) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈