Share via


IHostedApplication2.SetContext Method

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.

Namespace: Microsoft.Uii.Csr
Assembly: Microsoft.Uii.Csr.Core (in Microsoft.Uii.Csr.Core.dll)

Usage

'Usage
Dim instance As IHostedApplication2
Dim context As String

instance.SetContext(context)

Syntax

'Declaration
<ObsoleteAttribute("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.")> _
Sub SetContext ( _
    context As String _
)
[ObsoleteAttribute("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.")] 
void SetContext (
    string context
)
[ObsoleteAttribute(L"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.")] 
void SetContext (
    String^ context
)
/** @attribute ObsoleteAttribute("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.") */ 
void SetContext (
    String context
)
ObsoleteAttribute("This is no longer needed - Context has been updated to use CAB\u0027s WorkItem State, therefore the context will have already been set and available before context notification is fired.") 
function SetContext (
    context : String
)

Parameters

  • context
    Specifies the context.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

IHostedApplication2 Interface
IHostedApplication2 Members
Microsoft.Uii.Csr Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.