Name
LocalDataStoreSlot
Synopsis
The CLR allocates a multislot
local data store to each process when
it starts. These slots are used for thread-specific and
context-specific data, and are not shared between threads or
contexts. The LocalDataStoreSlot
class
encapsulates one of these slots. It’s used by the
GetData( )
and SetData( )
methods in the System.Threading.Thread
and
System.Runtime.Remoting.Contexts.Context
classes.
public sealed class LocalDataStoreSlot { // Protected Instance Methods protected override void Finalize( ); // overrides object }
Returned By
System.Threading.Thread.{AllocateDataSlot( )
,
AllocateNamedDataSlot( )
,
GetNamedDataSlot( )}
Passed To
System.Threading.Thread.{GetData( )
,
SetData( )}
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.