O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 by System.Runtime.Remoting.Contexts.Context classes.

public sealed class LocalDataStoreSlot {
// Protected Instance Methods
   protected override method void Finalize();                    // overrides object
}

Returned By

System.Threading.Thread.{AllocateDataSlot(), AllocateNamedDataSlot(), GetNamedDataSlot()}

Passed To

System.Threading.Thread.{GetData(), SetData()}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required