ComponentOne DataGrid for WPF and Silverlight
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.

In This Topic
    GetCustomAttributes(Type,Boolean) Method
    In This Topic
    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 Type, _
       ByVal inherit As Boolean _
    ) As Object()
    public override object[] GetCustomAttributes( 
       Type attributeType,
       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