System.Runtime.Remoting.Contexts.Context: Method Members

The methods of System.Runtime.Remoting.Contexts.Context are listed below. For a list of all members, see the Context Members list.

See Also: Inherited members from System.Object

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.