HostedControl.SetContext Method (String)

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 otherwords, a race condition.

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

Usage

'Usage
Dim instance As HostedControl
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.")> _
Public 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.")] 
public 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.")] 
public:
virtual void SetContext (
    String^ context
) sealed
/** @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 final 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.") 
public final function SetContext (
    context : String
)

Parameters

  • context
    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

HostedControl Class
HostedControl Members
Microsoft.Uii.Csr Namespace

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