HostedApplication.SetContext Method (Context)

This is used to set 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 HostedApplication
Dim context As Context

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.")> _
Public MustOverride Sub SetContext ( _
    context As Context _
)
[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.")] 
public abstract void SetContext (
    Context 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.")] 
public:
virtual void SetContext (
    Context^ context
) abstract
/** @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.") */ 
public abstract void SetContext (
    Context 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.") 
public abstract function SetContext (
    context : Context
)

Parameters

  • context
    context to be set

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

HostedApplication Class
HostedApplication Members
Microsoft.Uii.Csr Namespace

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