Context Class
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016
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)
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
Microsoft.Uii.Csr.Context
Microsoft.Uii.Csr.ContextState
Syntax
public class Context : MarshalByRefObject, IContext
Public Class Context
Inherits MarshalByRefObject
Implements IContext
Constructors
Name | Description | |
---|---|---|
Context() | Initializes a new instance of the Context class. |
|
Context(String) | Type: String |
Properties
Name | Description | |
---|---|---|
ContextInformation | Gets or sets the context with an XML context |
|
ContextRoot | Gets the context root value. |
|
Count | Gets the number of items in the context. |
|
EmptyContext | Gets an empty context |
|
Item[String] | Gets or sets the value associated with the specified key. |
Methods
Name | Description | |
---|---|---|
Clear() | Clears the context. |
|
CreateObjRef(Type) | (Inherited from MarshalByRefObject.) |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetContext() | Get the XML context string from the context. |
|
GetHashCode() | (Inherited from Object.) |
|
GetLifetimeService() | (Inherited from MarshalByRefObject.) |
|
GetType() | (Inherited from Object.) |
|
InitializeLifetimeService() | (Inherited from MarshalByRefObject.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
MemberwiseClone(Boolean) | (Inherited from MarshalByRefObject.) |
|
SetContext(String) | Sets the context with an XML context. |
|
ToString() | (Inherited from Object.) |
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.
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.
See Also
Return to top
Unified Service Desk 2.0
© 2016 Microsoft. All rights reserved. Copyright