System.Runtime.Remoting.Contexts.Context Members

The members of System.Runtime.Remoting.Contexts.Context are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Runtime.Remoting.Contexts.Context class.

Public Properties

[read-only]
ContextIDint.

Gets the context ID for the current context.

[read-only]
ContextPropertiesSystem.Runtime.Remoting.Contexts.IContextProperty[].

Gets the array of the current context properties.

[read-only]
static
DefaultContextSystem.Runtime.Remoting.Contexts.Context.

Gets the default context for the current application domain.

Public Methods

static
AllocateDataSlot() : LocalDataStoreSlot

Allocates an unnamed data slot.

static
AllocateNamedDataSlot(string) : LocalDataStoreSlot

Allocates a named data slot.

DoCallBack(System.Runtime.Remoting.Contexts.CrossContextDelegate)

Executes code in another context.

Finalize()

Cleans up the backing objects for the nondefault contexts.

static
FreeNamedDataSlot(string)

Frees a named data slot on all the contexts.

Freeze()

Freezes the context, making it impossible to add or remove context properties from the current context.

static
GetData(LocalDataStoreSlot) : object

Retrieves the value from the specified slot on the current context.

static
GetNamedDataSlot(string) : LocalDataStoreSlot

Looks up a named data slot.

GetProperty(string) : System.Runtime.Remoting.Contexts.IContextProperty

Returns a specific context property, specified by name.

static
RegisterDynamicProperty(System.Runtime.Remoting.Contexts.IDynamicProperty, ContextBoundObject, System.Runtime.Remoting.Contexts.Context) : bool

Registers a dynamic property implementing the System.Runtime.Remoting.Contexts.IDynamicProperty interface with the remoting service.

static
SetData(LocalDataStoreSlot, object)

Sets the data in the specified slot on the current context.

SetProperty(System.Runtime.Remoting.Contexts.IContextProperty)

Sets a specific context property by name.

override
ToString() : string

Returns a string class representation of the current context.

static
UnregisterDynamicProperty(string, ContextBoundObject, System.Runtime.Remoting.Contexts.Context) : bool

Unregisters a dynamic property implementing the System.Runtime.Remoting.Contexts.IDynamicProperty interface.