Partager via


IHostedApplication2.SetContext(String) Method

Definition

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.

Sets the context from ApplicationHost without causing further notifications. 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 other words, a race condition.

public:
 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
Public Sub SetContext (context As String)

Parameters

context
String

Specifies the context.

Attributes

Applies to