Context.GetNamedDataSlot Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Looks up a named data slot.

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

public static LocalDataStoreSlot GetNamedDataSlot(
	string name


Type: System.String

The data slot name.

Return Value

Type: System.LocalDataStoreSlot

Returns a local data slot.

If the name has not been used, a new slot is allocated. Named data slots are public and can be manipulated by anyone.

.NET Framework
Available since 1.1
Return to top