ComponentOne DataGrid for WPF and Silverlight
GetCustomAttributes(Type,Boolean) Method

C1.WPF.DataGrid Namespace > CustomPropertyInfo Class > GetCustomAttributes Method : GetCustomAttributes(Type,Boolean) Method
The type of attribute to search for. Only attributes that are assignable to this type are returned.
Specifies whether to search this member's inheritance chain to find the attributes.
When overridden in a derived class, returns an array of custom attributes identified by System.Type.
Syntax
'Declaration
 
Public Overloads Overrides Function GetCustomAttributes( _
   ByVal attributeType As System.Type, _
   ByVal inherit As System.Boolean _
) As System.Object()
public override System.object[] GetCustomAttributes( 
   System.Type attributeType,
   System.bool inherit
)

Parameters

attributeType
The type of attribute to search for. Only attributes that are assignable to this type are returned.
inherit
Specifies whether to search this member's inheritance chain to find the attributes.

Return Value

An array of custom attributes applied to this member, or an array with zero (0) elements if no attributes have been applied.
Exceptions
ExceptionDescription
A custom attribute type cannot be loaded.
If attributeType is null.
This member belongs to a type that is loaded into the reflection-only context. See How to: Load Assemblies into the Reflection-Only Context.
See Also

Reference

CustomPropertyInfo Class
CustomPropertyInfo Members
Overload List