Assembly: mscorlib (in mscorlib.dll)
[SerializableAttribute] [ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets.Class)] [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.Infrastructure)] [SecurityPermissionAttribute(SecurityAction.InheritanceDemand, Flags = SecurityPermissionFlag.Infrastructure)] public class ContextAttribute : Attribute, IContextAttribute, IContextProperty
The class is the root for all context attributes. Simple Context class properties can be derived from with the context attribute and the context property being in the class. For more specialized or more sophisticated needs, the context attribute can derive from and the context property can be split into a separated class. For more information about using attributes, see Extending Metadata Using Attributes.Notes to Inheritors:
The Name property must not be overridden in any user derived class. The current Equals and GetHashCode methods depend on the default functionality. To provide advanced behavior for a class extending the class and override the Name property, you also have to override the default implementation of the Equals and GetHashCode methods.
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.