IsDefined Method

CustomAttributeExtensions.IsDefined Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Indicates whether custom attributes are applied to an element.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member IsDefined(Assembly, Type) Indicates whether custom attributes of a specified type are applied to a specified assembly.
Public method Static member IsDefined(MemberInfo, Type) Indicates whether custom attributes of a specified type are applied to a specified member.
Public method Static member IsDefined(Module, Type) Indicates whether custom attributes of a specified type are applied to a specified module.
Public method Static member IsDefined(ParameterInfo, Type) Indicates whether custom attributes of a specified type are applied to a specified parameter.
Public method Static member IsDefined(MemberInfo, Type, Boolean) Indicates whether custom attributes of a specified type are applied to a specified member, and, optionally, applied to its ancestors.
Public method Static member IsDefined(ParameterInfo, Type, Boolean) Indicates whether custom attributes of a specified type are applied to a specified parameter, and, optionally, applied to its ancestors.
Top

Show:
© 2016 Microsoft