Context::AllocateNamedDataSlot Method (String^)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Allocates a named data slot.

Namespace:   System.Runtime.Remoting.Contexts
Assembly:  mscorlib (in mscorlib.dll)

public:
[SecurityCriticalAttribute]
static LocalDataStoreSlot^ AllocateNamedDataSlot(
	String^ name
)

Parameters

name
Type: System::String^

The required name for the data slot.

Return Value

Type: System::LocalDataStoreSlot^

A local data slot object.

The slot is allocated on all the contexts. Named data slots are public and can be manipulated by anyone.

.NET Framework
Available since 1.1
Return to top
Show: