次の方法で共有


HostedWpfControl.SetContext Method

Definition

Overloads

SetContext(Context)
Obsolete.

This is used to set the context from applicationhost without causing further notifications.

SetContext(String)
Obsolete.

This is used to set the context from applicationhost without causing further notifications.

SetContext(Context)

Caution

This is no longer needed - Context has been updated to use CAB's WorkItem State, therefore the context will have already been set and available before context notification is fired.

This is used to set the context from applicationhost without causing further notifications.

public:
 virtual void SetContext(Microsoft::Uii::Csr::Context ^ context);
[System.Obsolete("This is no longer needed - Context has been updated to use CAB's WorkItem State, therefore the context will have already been set and available before context notification is fired.")]
public void SetContext (Microsoft.Uii.Csr.Context context);
[<System.Obsolete("This is no longer needed - Context has been updated to use CAB's WorkItem State, therefore the context will have already been set and available before context notification is fired.")>]
abstract member SetContext : Microsoft.Uii.Csr.Context -> unit
override this.SetContext : Microsoft.Uii.Csr.Context -> unit
Public Sub SetContext (context As Context)

Parameters

context
Context

Specifies the context.

Implements

Attributes

Remarks

It exists so that context can be updated quietly before doing the 'real' context notification because some applications fire actions onto other apps when the context changes and some actions are designed to depend upon context. In otherwords, a race condition.

Applies to

SetContext(String)

Caution

This is no longer needed - Context has been updated to use CAB's WorkItem State, therefore the context will have already been set and available before context notification is fired.

This is used to set the context from applicationhost without causing further notifications.

public:
 virtual void SetContext(System::String ^ context);
[System.Obsolete("This is no longer needed - Context has been updated to use CAB's WorkItem State, therefore the context will have already been set and available before context notification is fired.")]
public void SetContext (string context);
[<System.Obsolete("This is no longer needed - Context has been updated to use CAB's WorkItem State, therefore the context will have already been set and available before context notification is fired.")>]
abstract member SetContext : string -> unit
override this.SetContext : string -> unit
Public Sub SetContext (context As String)

Parameters

context
String

Specifies the context.

Implements

Attributes

Remarks

It exists so that context can be updated quietly before doing the 'real' context notification because some applications fire actions onto other apps when the context changes and some actions are designed to depend upon context. In otherwords, a race condition.

Applies to