System.Reflection.CustomAttributeExtensions.IsDefined Method

Indicates whether custom attributes of a specified type are applied to a specified member, and, optionally, applied to its ancestors.

Syntax

public static bool IsDefined (this MemberInfo element, Type attributeType, bool inherit)

Parameters

element
The member to inspect.
attributeType
The type of the attribute to search for.
inherit
true to inspect the ancestors of element; otherwise, false.

Returns

true if an attribute of the specified type is applied to element; otherwise, false.

Remarks

Documentation for this section has not yet been entered.

Requirements

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