Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft