C# Класс System.Attribute

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Equals ( Object obj ) : bool
GetCustomAttribute ( Assembly element, Type attributeType ) : Attribute
GetCustomAttribute ( Assembly element, Type attributeType, bool inherit ) : Attribute
GetCustomAttribute ( MemberInfo element, Type attributeType ) : Attribute
GetCustomAttribute ( MemberInfo element, Type attributeType, bool inherit ) : Attribute
GetCustomAttribute ( Module element, Type attributeType ) : Attribute
GetCustomAttribute ( Module element, Type attributeType, bool inherit ) : Attribute
GetCustomAttribute ( ParameterInfo element, Type attributeType ) : Attribute
GetCustomAttribute ( ParameterInfo element, Type attributeType, bool inherit ) : Attribute
GetCustomAttributes ( Assembly element ) : System.Attribute[]
GetCustomAttributes ( Assembly element, Type attributeType ) : System.Attribute[]
GetCustomAttributes ( Assembly element, Type attributeType, bool inherit ) : System.Attribute[]
GetCustomAttributes ( Assembly element, bool inherit ) : System.Attribute[]
GetCustomAttributes ( MemberInfo element ) : Attribute[]
GetCustomAttributes ( MemberInfo element, Type type ) : Attribute[]
GetCustomAttributes ( MemberInfo element, Type type, bool inherit ) : Attribute[]
GetCustomAttributes ( MemberInfo element, bool inherit ) : Attribute[]
GetCustomAttributes ( Module element ) : Attribute[]
GetCustomAttributes ( Module element, Type attributeType ) : Attribute[]
GetCustomAttributes ( Module element, Type attributeType, bool inherit ) : Attribute[]
GetCustomAttributes ( Module element, bool inherit ) : Attribute[]
GetCustomAttributes ( ParameterInfo element ) : Attribute[]
GetCustomAttributes ( ParameterInfo element, Type attributeType ) : Attribute[]
GetCustomAttributes ( ParameterInfo element, Type attributeType, bool inherit ) : Attribute[]
GetCustomAttributes ( ParameterInfo element, bool inherit ) : Attribute[]
GetHashCode ( ) : int
IsDefaultAttribute ( ) : bool
IsDefined ( Assembly element, Type attributeType ) : bool
IsDefined ( Assembly element, Type attributeType, bool inherit ) : bool
IsDefined ( MemberInfo element, Type attributeType ) : bool
IsDefined ( MemberInfo element, Type attributeType, bool inherit ) : bool
IsDefined ( Module element, Type attributeType ) : bool
IsDefined ( Module element, Type attributeType, bool inherit ) : bool
IsDefined ( ParameterInfo element, Type attributeType ) : bool
IsDefined ( ParameterInfo element, Type attributeType, bool inherit ) : bool
Match ( Object obj ) : bool

Защищенные методы

Метод Описание
Attribute ( ) : System

Приватные методы

Метод Описание
AddAttributesToList ( ArrayList attributeList, Attribute attributes, Hashtable types ) : void
CopyToArrayList ( ArrayList attributeList, Attribute attributes, Hashtable types ) : void
GetParentDefinition ( EventInfo ev ) : EventInfo
GetParentDefinition ( PropertyInfo property ) : PropertyInfo
InternalGetAttributeUsage ( Type type ) : AttributeUsageAttribute
InternalGetCustomAttributes ( EventInfo element, Type type, bool inherit ) : Attribute[]
InternalGetCustomAttributes ( PropertyInfo element, Type type, bool inherit ) : Attribute[]
InternalIsDefined ( EventInfo element, Type attributeType, bool inherit ) : bool
InternalIsDefined ( PropertyInfo element, Type attributeType, bool inherit ) : bool
InternalParamGetCustomAttributes ( MethodInfo method, ParameterInfo param, Type type, bool inherit ) : Attribute[]
InternalParamIsDefined ( MethodInfo method, ParameterInfo param, Type type, bool inherit ) : bool
_Attribute ( [ riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId ) : void
_Attribute ( uint &pcTInfo ) : void
_Attribute ( uint dispIdMember, [ riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr ) : void
_Attribute ( uint iTInfo, uint lcid, IntPtr ppTInfo ) : void

Описание методов

Attribute() защищенный метод

protected Attribute ( ) : System
Результат System

Equals() публичный метод

public Equals ( Object obj ) : bool
obj Object
Результат bool

GetCustomAttribute() публичный статический метод

public static GetCustomAttribute ( Assembly element, Type attributeType ) : Attribute
element Assembly
attributeType Type
Результат Attribute

GetCustomAttribute() публичный статический метод

public static GetCustomAttribute ( Assembly element, Type attributeType, bool inherit ) : Attribute
element Assembly
attributeType Type
inherit bool
Результат Attribute

GetCustomAttribute() публичный статический метод

public static GetCustomAttribute ( MemberInfo element, Type attributeType ) : Attribute
element MemberInfo
attributeType Type
Результат Attribute

GetCustomAttribute() публичный статический метод

public static GetCustomAttribute ( MemberInfo element, Type attributeType, bool inherit ) : Attribute
element MemberInfo
attributeType Type
inherit bool
Результат Attribute

GetCustomAttribute() публичный статический метод

public static GetCustomAttribute ( Module element, Type attributeType ) : Attribute
element Module
attributeType Type
Результат Attribute

GetCustomAttribute() публичный статический метод

public static GetCustomAttribute ( Module element, Type attributeType, bool inherit ) : Attribute
element Module
attributeType Type
inherit bool
Результат Attribute

GetCustomAttribute() публичный статический метод

public static GetCustomAttribute ( ParameterInfo element, Type attributeType ) : Attribute
element ParameterInfo
attributeType Type
Результат Attribute

GetCustomAttribute() публичный статический метод

public static GetCustomAttribute ( ParameterInfo element, Type attributeType, bool inherit ) : Attribute
element ParameterInfo
attributeType Type
inherit bool
Результат Attribute

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( Assembly element ) : System.Attribute[]
element Assembly
Результат System.Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( Assembly element, Type attributeType ) : System.Attribute[]
element Assembly
attributeType Type
Результат System.Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( Assembly element, Type attributeType, bool inherit ) : System.Attribute[]
element Assembly
attributeType Type
inherit bool
Результат System.Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( Assembly element, bool inherit ) : System.Attribute[]
element Assembly
inherit bool
Результат System.Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( MemberInfo element ) : Attribute[]
element MemberInfo
Результат Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( MemberInfo element, Type type ) : Attribute[]
element MemberInfo
type Type
Результат Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( MemberInfo element, Type type, bool inherit ) : Attribute[]
element MemberInfo
type Type
inherit bool
Результат Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( MemberInfo element, bool inherit ) : Attribute[]
element MemberInfo
inherit bool
Результат Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( Module element ) : Attribute[]
element Module
Результат Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( Module element, Type attributeType ) : Attribute[]
element Module
attributeType Type
Результат Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( Module element, Type attributeType, bool inherit ) : Attribute[]
element Module
attributeType Type
inherit bool
Результат Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( Module element, bool inherit ) : Attribute[]
element Module
inherit bool
Результат Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( ParameterInfo element ) : Attribute[]
element ParameterInfo
Результат Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( ParameterInfo element, Type attributeType ) : Attribute[]
element ParameterInfo
attributeType Type
Результат Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( ParameterInfo element, Type attributeType, bool inherit ) : Attribute[]
element ParameterInfo
attributeType Type
inherit bool
Результат Attribute[]

GetCustomAttributes() публичный статический метод

public static GetCustomAttributes ( ParameterInfo element, bool inherit ) : Attribute[]
element ParameterInfo
inherit bool
Результат Attribute[]

GetHashCode() публичный метод

public GetHashCode ( ) : int
Результат int

IsDefaultAttribute() публичный метод

public IsDefaultAttribute ( ) : bool
Результат bool

IsDefined() публичный статический метод

public static IsDefined ( Assembly element, Type attributeType ) : bool
element Assembly
attributeType Type
Результат bool

IsDefined() публичный статический метод

public static IsDefined ( Assembly element, Type attributeType, bool inherit ) : bool
element Assembly
attributeType Type
inherit bool
Результат bool

IsDefined() публичный статический метод

public static IsDefined ( MemberInfo element, Type attributeType ) : bool
element MemberInfo
attributeType Type
Результат bool

IsDefined() публичный статический метод

public static IsDefined ( MemberInfo element, Type attributeType, bool inherit ) : bool
element MemberInfo
attributeType Type
inherit bool
Результат bool

IsDefined() публичный статический метод

public static IsDefined ( Module element, Type attributeType ) : bool
element Module
attributeType Type
Результат bool

IsDefined() публичный статический метод

public static IsDefined ( Module element, Type attributeType, bool inherit ) : bool
element Module
attributeType Type
inherit bool
Результат bool

IsDefined() публичный статический метод

public static IsDefined ( ParameterInfo element, Type attributeType ) : bool
element ParameterInfo
attributeType Type
Результат bool

IsDefined() публичный статический метод

public static IsDefined ( ParameterInfo element, Type attributeType, bool inherit ) : bool
element ParameterInfo
attributeType Type
inherit bool
Результат bool

Match() публичный метод

public Match ( Object obj ) : bool
obj Object
Результат bool