System.Reflection.CustomAttributeExtensions.IsDefined Method

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

Syntax

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

Parameters

element
The parameter to inspect.
attributeType
The type of 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