ArcFM Desktop Developer Guide
ThreadStorage<T> Class
Members 


The type of thread-specific value.
Product Availability
Required Licenses
.NET Assembly
Represents a strongly typed thread-specific value.
Object Model
ThreadStorage<T> Class
Syntax
'Declaration
 
Public Class ThreadStorage(Of T) 
   Inherits System.MarshalByRefObject
'Usage
 
Dim instance As ThreadStorage(Of T)
public class ThreadStorage<T> : System.MarshalByRefObject 
Type Parameters
T
The type of thread-specific value.
Remarks

This is similar to Thread Local Storage (TLS) or the CallContext with the added benefit of being type-safe and also supports on-demand creation (optionally, when creating the ThreadStorage with the CreatorCallback delegate).

Additionally, deriving classes can enforce call-semantics - for example, the STAThreadStorage is useful for enforcing that the calling thread is an STA thread to prevent unwanted marshaling.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      Miner.Threading.ThreadStorage<T>
         Miner.Threading.STAThreadStorage<T>

Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

ThreadStorage<T> Members
Miner.Threading Namespace

 

 


Send Comment