HostedWpfControl.SetContext Method (Context)
This is used to set the context from applicationhost without causing further notifications.
Namespace: Microsoft.Uii.Csr.Aif.HostedApplication
Assembly: Microsoft.Uii.Csr.Core (in Microsoft.Uii.Csr.Core.dll)
Usage
'Usage
Dim instance As HostedWpfControl
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 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 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
) 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 (
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 final function SetContext (
context : Context
)
Parameters
- context
Specifies the context.
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.
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
HostedWpfControl Class
HostedWpfControl Members
Microsoft.Uii.Csr.Aif.HostedApplication Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.