TypeExtensions.GetCustomAttributes<T> Method (Type)
Applies To: Dynamics CRM 2015
Returns the collection of custom attributes for a given type.
Namespace: Microsoft.Xrm.Client
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static IEnumerable<T> GetCustomAttributes<T>(
this Type type
)
where T : Attribute
public:
generic<typename T>
where T : Attribute
[ExtensionAttribute]
static IEnumerable<T>^ GetCustomAttributes(
Type^ type
)
static member GetCustomAttributes<'T when 'T : Attribute> :
type:Type -> IEnumerable<'T>
<ExtensionAttribute>
Public Shared Function GetCustomAttributes(Of T As Attribute) (
type As Type
) As IEnumerable(Of T)
Parameters
type
Type: System.TypeThe type.
Return Value
Type: System.Collections.Generic.IEnumerable<T>
Type: IEnumerable<Type>
The collection of custom attributes for the specified type.
Type Parameters
- T
Type T.
See Also
TypeExtensions Class
Microsoft.Xrm.Client Namespace
Developer extensions for Microsoft Dynamics CRM 2015
Return to top
© 2017 Microsoft. All rights reserved. Copyright