System.Attribute Class
Information   Base Types   Related Resources

Base class for custom attributes.

  • Namespace: System
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: mscorlib.dll

  • System.Object
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (16)Discussions (106)MembersRotorChanges
    Public Properties
    public System.Object TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.Find in Rotor
     
    Public Methods
    public System.Boolean Equals(System.Object obj)(No summary available.)Find in Rotor
    public static System.Attribute GetCustomAttribute(System.Reflection.MemberInfo element, System.Type attributeType)Retrieves a custom attribute of a specified type applied to a specified member of a class or inherited from a base class.Find in Rotor
    public static System.Attribute GetCustomAttribute(System.Reflection.MemberInfo element, System.Type attributeType, System.Boolean inherit)Retrieves a custom attribute of a specified type applied to a specified member of a class or optionally inherited from a base class.Find in Rotor
    public static System.Attribute GetCustomAttribute(System.Reflection.ParameterInfo element, System.Type attributeType)Retrieves a custom attribute of a specified type applied to a specified parameter of a member of a class or inherited from a base class.Find in Rotor
    public static System.Attribute GetCustomAttribute(System.Reflection.ParameterInfo element, System.Type attributeType, System.Boolean inherit)Retrieves a custom attribute of a specified type applied to a specified parameter of a member of a class or optionally inherited from a base class.Find in Rotor
    public static System.Attribute GetCustomAttribute(System.Reflection.Module element, System.Type attributeType)Retrieves a custom attribute of a specified type applied to a specified module or inherited from a base class.Find in Rotor
    public static System.Attribute GetCustomAttribute(System.Reflection.Module element, System.Type attributeType, System.Boolean inherit)Retrieves a custom attribute of a specified type applied to a specified module or optionally inherited from a base class.Find in Rotor
    public static System.Attribute GetCustomAttribute(System.Reflection.Assembly element, System.Type attributeType)Retrieves a custom attribute of a specified type applied to a specified assembly or inherited from a base class.Find in Rotor
    public static System.Attribute GetCustomAttribute(System.Reflection.Assembly element, System.Type attributeType, System.Boolean inherit)Retrieves a custom attribute of a specified type applied to a specified assembly or optionally inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.MemberInfo element, System.Type type)Retrieves an array of the custom attributes of a specified type applied to a specified member of a class or inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.MemberInfo element, System.Type type, System.Boolean inherit)Retrieves an array of the custom attributes of a specified type applied to a specified member of a class or optionally inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.MemberInfo element)Retrieves an array of the custom attributes applied to a specified member of a class or inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.MemberInfo element, System.Boolean inherit)Retrieves an array of the custom attributes of a specified member of a class or inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.ParameterInfo element, System.Type attributeType)Retrieves an array of the custom attributes of a specified type applied to a specified parameter of a member of a class or inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.ParameterInfo element, System.Type attributeType, System.Boolean inherit)Retrieves an array of the custom attributes of a specified type applied to a specified parameter of a member of a class or optionally inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.Module element, System.Type attributeType)Retrieves an array of the custom attributes of a specified type applied to a specified module or inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.Module element, System.Type attributeType, System.Boolean inherit)Retrieves an array of the custom attributes of a specified type applied to a specified module or optionally inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.Assembly element, System.Type attributeType)Retrieves an array of the custom attributes of a specified type applied to a specified assembly or inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.Assembly element, System.Type attributeType, System.Boolean inherit)Retrieves an array of the custom attributes of a specified type applied to a specified assembly or optionally inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.ParameterInfo element)Retrieves an array of the custom attributes of a specified type applied to a specified parameter of a member of a class or inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.ParameterInfo element, System.Boolean inherit)Retrieves an array of the custom attributes of a specified type applied to a specified parameter of a member of a class or optionally inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.Module element)Retrieves an array of the custom attributes of a specified type applied to a specified module or inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.Module element, System.Boolean inherit)Retrieves an array of the custom attributes of a specified type applied to a specified module or optionally inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.Assembly element)Retrieves an array of the custom attributes of a specified type applied to a specified assembly or inherited from a base class.Find in Rotor
    public static System.Attribute[] GetCustomAttributes(System.Reflection.Assembly element, System.Boolean inherit)Retrieves an array of the custom attributes of a specified type applied to a specified assembly or optionally inherited from a base class.Find in Rotor
    public System.Int32 GetHashCode()Returns the hash code for this instance.Find in Rotor
    public System.Boolean IsDefaultAttribute()When overridden in a derived class, returns an indication whether the value of this instance is the default value for the derived class.Find in Rotor
    public static System.Boolean IsDefined(System.Reflection.MemberInfo element, System.Type attributeType)Determines whether any custom attributes of a specified type are applied to a specified member of a class or inherited from a base class.Find in Rotor
    public static System.Boolean IsDefined(System.Reflection.MemberInfo element, System.Type attributeType, System.Boolean inherit)Determines whether any custom attributes of a specified type are applied to a specified member of a class or optionally inherited from a base class.Find in Rotor
    public static System.Boolean IsDefined(System.Reflection.ParameterInfo element, System.Type attributeType)Determines whether any custom attributes of a specified type are applied to a specified parameter of a member of a class or inherited from a base class.Find in Rotor
    public static System.Boolean IsDefined(System.Reflection.ParameterInfo element, System.Type attributeType, System.Boolean inherit)Determines whether any custom attributes of a specified type are applied to a specified parameter of a member of a class or optionally inherited from a base class.Find in Rotor
    public static System.Boolean IsDefined(System.Reflection.Module element, System.Type attributeType)Determines whether any custom attributes of a specified type are applied to a specified module.Find in Rotor
    public static System.Boolean IsDefined(System.Reflection.Module element, System.Type attributeType, System.Boolean inherit)Determines whether any custom attributes of a specified type are applied to a specified module.Find in Rotor
    public static System.Boolean IsDefined(System.Reflection.Assembly element, System.Type attributeType)Determines whether any custom attributes of a specified type are applied to a specified assembly.Find in Rotor
    public static System.Boolean IsDefined(System.Reflection.Assembly element, System.Type attributeType, System.Boolean inherit)Determines whether any custom attributes of a specified type are applied to a specified assembly.Find in Rotor
    public System.Boolean Match(System.Object obj)When overridden in a derived class, returns a value indicating whether this instance equals a specified object.Find in Rotor
     
    Protected Constructors
    protected Attribute()Initializes a new instance of the Attribute class.Find in Rotor
     
    Private Constructors
    private static Attribute()Initializes a new instance of the Attribute class.Find in Rotor
     
    Private Fields
    private static System.Type s_AttributeType(No summary available.)Find in Rotor
    private static System.Type s_AttributeUsageType(No summary available.)Find in Rotor
     
    Private Methods
    private static void AddAttributesToList(System.Collections.ArrayList attributeList, System.Attribute[] attributes, System.Collections.Hashtable types)(No summary available.)Find in Rotor
    private static void CopyToArrayList(System.Collections.ArrayList attributeList, System.Attribute[] attributes, System.Collections.Hashtable types)(No summary available.)Find in Rotor
    private static System.Reflection.PropertyInfo GetParentDefinition(System.Reflection.PropertyInfo property)(No summary available.)Find in Rotor
    private static System.Reflection.EventInfo GetParentDefinition(System.Reflection.EventInfo ev)(No summary available.)Find in Rotor
    private static System.AttributeUsageAttribute InternalGetAttributeUsage(System.Type type)(No summary available.)Find in Rotor
    private static System.Attribute[] InternalGetCustomAttributes(System.Reflection.PropertyInfo element, System.Type type, System.Boolean inherit)(No summary available.)Find in Rotor
    private static System.Attribute[] InternalGetCustomAttributes(System.Reflection.EventInfo element, System.Type type, System.Boolean inherit)(No summary available.)Find in Rotor
    private static System.Boolean InternalIsDefined(System.Reflection.PropertyInfo element, System.Type attributeType, System.Boolean inherit)(No summary available.)Find in Rotor
    private static System.Boolean InternalIsDefined(System.Reflection.EventInfo element, System.Type attributeType, System.Boolean inherit)(No summary available.)Find in Rotor
    private static System.Attribute[] InternalParamGetCustomAttributes(System.Reflection.MethodInfo method, System.Reflection.ParameterInfo param, System.Type type, System.Boolean inherit)(No summary available.)Find in Rotor
    private static System.Boolean InternalParamIsDefined(System.Reflection.MethodInfo method, System.Reflection.ParameterInfo param, System.Type type, System.Boolean inherit)(No summary available.)Find in Rotor
     
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com