C# Class System.Attribute

ファイルを表示 Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
Attribute ( ) : System

Private Methods

Method Description
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

Method Details

Attribute() protected method

protected Attribute ( ) : System
return System

Equals() public method

public Equals ( Object obj ) : bool
obj Object
return bool

GetCustomAttribute() public static method

public static GetCustomAttribute ( Assembly element, Type attributeType ) : Attribute
element Assembly
attributeType Type
return Attribute

GetCustomAttribute() public static method

public static GetCustomAttribute ( Assembly element, Type attributeType, bool inherit ) : Attribute
element Assembly
attributeType Type
inherit bool
return Attribute

GetCustomAttribute() public static method

public static GetCustomAttribute ( MemberInfo element, Type attributeType ) : Attribute
element MemberInfo
attributeType Type
return Attribute

GetCustomAttribute() public static method

public static GetCustomAttribute ( MemberInfo element, Type attributeType, bool inherit ) : Attribute
element MemberInfo
attributeType Type
inherit bool
return Attribute

GetCustomAttribute() public static method

public static GetCustomAttribute ( Module element, Type attributeType ) : Attribute
element Module
attributeType Type
return Attribute

GetCustomAttribute() public static method

public static GetCustomAttribute ( Module element, Type attributeType, bool inherit ) : Attribute
element Module
attributeType Type
inherit bool
return Attribute

GetCustomAttribute() public static method

public static GetCustomAttribute ( ParameterInfo element, Type attributeType ) : Attribute
element ParameterInfo
attributeType Type
return Attribute

GetCustomAttribute() public static method

public static GetCustomAttribute ( ParameterInfo element, Type attributeType, bool inherit ) : Attribute
element ParameterInfo
attributeType Type
inherit bool
return Attribute

GetCustomAttributes() public static method

public static GetCustomAttributes ( Assembly element ) : System.Attribute[]
element Assembly
return System.Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( Assembly element, Type attributeType ) : System.Attribute[]
element Assembly
attributeType Type
return System.Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( Assembly element, Type attributeType, bool inherit ) : System.Attribute[]
element Assembly
attributeType Type
inherit bool
return System.Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( Assembly element, bool inherit ) : System.Attribute[]
element Assembly
inherit bool
return System.Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( MemberInfo element ) : Attribute[]
element MemberInfo
return Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( MemberInfo element, Type type ) : Attribute[]
element MemberInfo
type Type
return Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( MemberInfo element, Type type, bool inherit ) : Attribute[]
element MemberInfo
type Type
inherit bool
return Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( MemberInfo element, bool inherit ) : Attribute[]
element MemberInfo
inherit bool
return Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( Module element ) : Attribute[]
element Module
return Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( Module element, Type attributeType ) : Attribute[]
element Module
attributeType Type
return Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( Module element, Type attributeType, bool inherit ) : Attribute[]
element Module
attributeType Type
inherit bool
return Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( Module element, bool inherit ) : Attribute[]
element Module
inherit bool
return Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( ParameterInfo element ) : Attribute[]
element ParameterInfo
return Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( ParameterInfo element, Type attributeType ) : Attribute[]
element ParameterInfo
attributeType Type
return Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( ParameterInfo element, Type attributeType, bool inherit ) : Attribute[]
element ParameterInfo
attributeType Type
inherit bool
return Attribute[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( ParameterInfo element, bool inherit ) : Attribute[]
element ParameterInfo
inherit bool
return Attribute[]

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsDefaultAttribute() public method

public IsDefaultAttribute ( ) : bool
return bool

IsDefined() public static method

public static IsDefined ( Assembly element, Type attributeType ) : bool
element Assembly
attributeType Type
return bool

IsDefined() public static method

public static IsDefined ( Assembly element, Type attributeType, bool inherit ) : bool
element Assembly
attributeType Type
inherit bool
return bool

IsDefined() public static method

public static IsDefined ( MemberInfo element, Type attributeType ) : bool
element MemberInfo
attributeType Type
return bool

IsDefined() public static method

public static IsDefined ( MemberInfo element, Type attributeType, bool inherit ) : bool
element MemberInfo
attributeType Type
inherit bool
return bool

IsDefined() public static method

public static IsDefined ( Module element, Type attributeType ) : bool
element Module
attributeType Type
return bool

IsDefined() public static method

public static IsDefined ( Module element, Type attributeType, bool inherit ) : bool
element Module
attributeType Type
inherit bool
return bool

IsDefined() public static method

public static IsDefined ( ParameterInfo element, Type attributeType ) : bool
element ParameterInfo
attributeType Type
return bool

IsDefined() public static method

public static IsDefined ( ParameterInfo element, Type attributeType, bool inherit ) : bool
element ParameterInfo
attributeType Type
inherit bool
return bool

Match() public method

public Match ( Object obj ) : bool
obj Object
return bool