ContextStaticAttribute Class
Assembly: mscorlib (in mscorlib.dll)
'Declaration <SerializableAttribute> _ <AttributeUsageAttribute(AttributeTargets.Field, Inherited:=False)> _ <ComVisibleAttribute(True)> _ Public Class ContextStaticAttribute Inherits Attribute 'Usage Dim instance As ContextStaticAttribute
/** @attribute SerializableAttribute() */ /** @attribute AttributeUsageAttribute(AttributeTargets.Field, Inherited=false) */ /** @attribute ComVisibleAttribute(true) */ public class ContextStaticAttribute extends Attribute
SerializableAttribute AttributeUsageAttribute(AttributeTargets.Field, Inherited=false) ComVisibleAttribute(true) public class ContextStaticAttribute extends Attribute
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 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.