CustomAttributeExtensions Class

.NET Framework 4.5

Contains static methods for retrieving custom attributes.

System.Object
  System.Reflection.CustomAttributeExtensions

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class CustomAttributeExtensions

  NameDescription
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(Assembly, Type)Retrieves a custom attribute of a specified type that is applied to a specified assembly.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(MemberInfo, Type)Retrieves a custom attribute of a specified type that is applied to a specified member.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(Module, Type)Retrieves a custom attribute of a specified type that is applied to a specified module.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(ParameterInfo, Type)Retrieves a custom attribute of a specified type that is applied to a specified parameter.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(MemberInfo, Type, Boolean)Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(ParameterInfo, Type, Boolean)Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(Of T)(Assembly)Retrieves a custom attribute of a specified type that is applied to a specified assembly.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(Of T)(MemberInfo)Retrieves a custom attribute of a specified type that is applied to a specified member.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(Of T)(Module)Retrieves a custom attribute of a specified type that is applied to a specified module.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(Of T)(ParameterInfo)Retrieves a custom attribute of a specified type that is applied to a specified parameter.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(Of T)(MemberInfo, Boolean)Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttribute(Of T)(ParameterInfo, Boolean)Retrieves a custom attribute of a specified type that is applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(Assembly)Retrieves a collection of custom attributes that are applied to a specified assembly.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(MemberInfo)Retrieves a collection of custom attributes that are applied to a specified member.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(Module)Retrieves a collection of custom attributes that are applied to a specified module.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(ParameterInfo)Retrieves a collection of custom attributes that are applied to a specified parameter.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(Assembly, Type)Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(MemberInfo, Boolean)Retrieves a collection of custom attributes that are applied to a specified member, and optionally inspects the ancestors of that member.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(MemberInfo, Type)Retrieves a collection of custom attributes of a specified type that are applied to a specified member.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(Module, Type)Retrieves a collection of custom attributes of a specified type that are applied to a specified module.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(ParameterInfo, Boolean)Retrieves a collection of custom attributes that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(ParameterInfo, Type)Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(MemberInfo, Type, Boolean)Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(ParameterInfo, Type, Boolean)Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(Of T)(Assembly)Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(Of T)(MemberInfo)Retrieves a collection of custom attributes of a specified type that are applied to a specified member.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(Of T)(Module)Retrieves a collection of custom attributes of a specified type that are applied to a specified module.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(Of T)(ParameterInfo)Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(Of T)(MemberInfo, Boolean)Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member.
Public methodStatic memberSupported in .NET for Windows Store appsGetCustomAttributes(Of T)(ParameterInfo, Boolean)Retrieves a collection of custom attributes of a specified type that are applied to a specified parameter, and optionally inspects the ancestors of that parameter.
Public methodStatic memberSupported in .NET for Windows Store appsIsDefined(Assembly, Type)Indicates whether custom attributes of a specified type are applied to a specified assembly.
Public methodStatic memberSupported in .NET for Windows Store appsIsDefined(MemberInfo, Type)Indicates whether custom attributes of a specified type are applied to a specified member.
Public methodStatic memberSupported in .NET for Windows Store appsIsDefined(Module, Type)Indicates whether custom attributes of a specified type are applied to a specified module.
Public methodStatic memberSupported in .NET for Windows Store appsIsDefined(ParameterInfo, Type)Indicates whether custom attributes of a specified type are applied to a specified parameter.
Public methodStatic memberSupported in .NET for Windows Store appsIsDefined(MemberInfo, Type, Boolean)Indicates whether custom attributes of a specified type are applied to a specified member, and, optionally, applied to its ancestors.
Public methodStatic memberSupported in .NET for Windows Store appsIsDefined(ParameterInfo, Type, Boolean)Indicates whether custom attributes of a specified type are applied to a specified parameter, and, optionally, applied to its ancestors.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone 8, Silverlight 8.1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft