Partager via


Context Class

Definition

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

public ref class Context : MarshalByRefObject, Microsoft::Uii::Common::IContext
public class Context : MarshalByRefObject, Microsoft.Uii.Common.IContext
type Context = class
    inherit MarshalByRefObject
    interface IContext
Public Class Context
Inherits MarshalByRefObject
Implements IContext
Inheritance
Derived
Implements

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.

Constructors

Context()

Initializes a new instance of the Context class.

Context(String)

Properties

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

Clear()

Clears the context.

GetContext()

Get the XML context string from the context.

SetContext(String)

Sets the context with an XML context.

Applies to