ContextStaticAttribute Class
Indicates that the value of a static field is unique for a particular context.
Assembly: mscorlib (in mscorlib.dll)
A static field marked with ContextStaticAttribute is not shared between contexts. If the indicated static field is accessed on a different context, it will contain a different value. Use this attribute as it is, and do not derive from it.
The following example shows the syntax of this attribute:
[ContextStatic]
static int f=7;
For more information about using attributes, see Extending Metadata Using Attributes.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.