Compartir a través de


Context Class

Represents the context class used to track contextual information, wrapped in an object.

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

Usage

'Usage
Dim instance As Context

Syntax

'Declaration
<DefaultMemberAttribute("Item")> _
<XmlIncludeAttribute(GetType(ContextState))> _
Public Class Context
    Inherits MarshalByRefObject
    Implements IContext
[DefaultMemberAttribute("Item")] 
[XmlIncludeAttribute(typeof(ContextState))] 
public class Context : MarshalByRefObject, IContext
[DefaultMemberAttribute(L"Item")] 
[XmlIncludeAttribute(typeof(ContextState))] 
public ref class Context : public MarshalByRefObject, IContext
/** @attribute DefaultMemberAttribute("Item") */ 
/** @attribute XmlIncludeAttribute(Microsoft.Uii.Csr.ContextState) */ 
public class Context extends MarshalByRefObject implements IContext
DefaultMemberAttribute("Item") 
XmlIncludeAttribute(Microsoft.Uii.Csr.ContextState) 
public class Context extends MarshalByRefObject implements IContext

Remarks

Works in a manner simuliar to the ASP.Net session. UII used to use the conext in a more string oriented manner. For backward compatibility that will still work but use the Context object for the framework and new applications. Use the GetContext or SetConext methods or the ContextInformation property to transfer the context back and forth between XML and the object.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
    Microsoft.Uii.Csr.Context
       Microsoft.Uii.Csr.ContextState

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

Context Members
Microsoft.Uii.Csr Namespace

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