Click or drag to resize
Attribute Class
Represents the base class for custom attributes.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    More...

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public abstract class Attribute : _Attribute

The Attribute type exposes the following members.

Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Overrides ObjectEquals(Object).)
Public methodStatic memberGetCustomAttribute(Module, Type)
Retrieves a custom attribute applied to a module. Parameters specify the module, and the type of the custom attribute to search for.
Public methodStatic memberGetCustomAttribute(Assembly, Type)
Retrieves a custom attribute applied to a specified assembly. Parameters specify the assembly and the type of the custom attribute to search for.
Public methodStatic memberGetCustomAttribute(MemberInfo, Type)
Retrieves a custom attribute applied to a member of a type. Parameters specify the member, and the type of the custom attribute to search for.
Public methodStatic memberGetCustomAttribute(ParameterInfo, Type)
Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, and the type of the custom attribute to search for.
Public methodStatic memberGetCustomAttribute(Module, Type, Boolean)
Retrieves a custom attribute applied to a module. Parameters specify the module, the type of the custom attribute to search for, and an ignored search option.
Public methodStatic memberGetCustomAttribute(Assembly, Type, Boolean)
Retrieves a custom attribute applied to an assembly. Parameters specify the assembly, the type of the custom attribute to search for, and an ignored search option.
Public methodStatic memberGetCustomAttribute(MemberInfo, Type, Boolean)
Retrieves a custom attribute applied to a member of a type. Parameters specify the member, the type of the custom attribute to search for, and whether to search ancestors of the member.
Public methodStatic memberGetCustomAttribute(ParameterInfo, Type, Boolean)
Retrieves a custom attribute applied to a method parameter. Parameters specify the method parameter, the type of the custom attribute to search for, and whether to search ancestors of the method parameter.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also
Inheritance Hierarchy
SystemObject
  SystemAttribute
    System.CodeDom.CompilerGeneratedCodeAttribute
    System.ComponentModelBrowsableAttribute
    System.ComponentModelCategoryAttribute
    System.ComponentModelDefaultValueAttribute
    System.ComponentModelDescriptionAttribute
    System.ComponentModelDesignerCategoryAttribute
    System.ComponentModelEditorBrowsableAttribute
    System.Runtime.SerializationCollectionDataContractAttribute
    System.Runtime.SerializationDataContractAttribute
    System.Runtime.SerializationDataMemberAttribute
    System.Runtime.SerializationEnumMemberAttribute
    System.Runtime.SerializationKnownTypeAttribute
    System.ServiceModelMessageContractAttribute
    System.ServiceModelMessageContractMemberAttribute
    System.ServiceModelOperationContractAttribute
    System.ServiceModelServiceContractAttribute
    System.Windows.MarkupContentPropertyAttribute
    System.Windows.MarkupSupportsDirectContentViaTypeFromStringConvertersAttribute
    System.Windows.MarkupXmlnsDefinitionAttribute
    System.Xml.SerializationXmlArrayAttribute
    System.Xml.SerializationXmlArrayItemAttribute
    System.Xml.SerializationXmlAttributeAttribute
    System.Xml.SerializationXmlElementAttribute
    System.Xml.SerializationXmlEnumAttribute
    System.Xml.SerializationXmlIgnoreAttribute
    System.Xml.SerializationXmlIncludeAttribute
    System.Xml.SerializationXmlRootAttribute
    System.Xml.SerializationXmlSerializerVersionAttribute
    System.Xml.SerializationXmlTypeAttribute