- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
M_CodeJam_Mapping_MappingSchema_GetAttributes__1_2
        Andrew Koryavchenko edited this page Jun 17, 2018 
        ·
        5 revisions
      
    Returns custom attributes applied to provided type.
Namespace: CodeJam.Mapping
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0
C#
public T[] GetAttributes<T>(
	Type type,
	bool inherit = true
)
where T : AttributeVB
Public Function GetAttributes(Of T As Attribute) ( 
	type As Type,
	Optional inherit As Boolean = true
) As T()F#
member GetAttributes : 
        type : Type * 
        ?inherit : bool 
(* Defaults:
        let _inherit = defaultArg inherit true
*)
-> 'T[]  when 'T : Attribute
- type
- Type: System.Type
 Object type
- inherit (Optional)
- Type: System.Boolean
 true to search this member's inheritance chain to find the attributes; otherwise, false.
- T
- The type of attribute to search for. Only attributes that are assignable to this type are returned.
Type: T[]
Array of custom attributes.
MappingSchema Class
GetAttributes Overload
CodeJam.Mapping Namespace