Gets the custom attributes.
'Declaration
Public Shared Function GetCustomAttributes(Of As System.Attribute)( _
ByVal As System.Reflection.MemberInfo, _
Optional ByVal As System.Boolean _
) As System.Collections.Generic.IEnumerable(Of T)
public static System.Collections.Generic.IEnumerable<T> GetCustomAttributes<>(
System.Reflection.MemberInfo ,
System.bool
)
where T: System.Attribute
Parameters
- memberInfo
- The member info.
- inherited
- if set to
true [inherited].
Type Parameters
- T
- Type of the custom attribute.
Return Value
The custom attribute or null if not found.