LocalDataStoreSlot Class
Encapsulates a memory slot to store local data. This class cannot be inherited.
For a list of all members of this type, see LocalDataStoreSlot Members.
System.Object
System.LocalDataStoreSlot
[Visual Basic] NotInheritable Public Class LocalDataStoreSlot [C#] public sealed class LocalDataStoreSlot [C++] public __gc __sealed class LocalDataStoreSlot [JScript] public class LocalDataStoreSlot
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
Threads and contexts use a local store memory mechanism to store thread-specific and context-specific data, respectively. The common language runtime allocates a multi-slot data store array to each process when it is created. The thread or context calls various functions to allocate a data slot in the data store, to store and retrieve a data value in the slot, and to free a data slot for reuse after the thread or context object expires.
The data slots are unique per thread or context; their values are not shared between the thread or context objects. Data slots can be allocated by a name or by an index number.
For more information, see Thread or Context.
Requirements
Namespace: System
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: Mscorlib (in Mscorlib.dll)
See Also
LocalDataStoreSlot Members | System Namespace | Thread | Context