ActionDescriptor.IsDefined(Type, Boolean) Method

Definition

Determines whether one or more instances of the specified attribute type are defined for this member.

public virtual bool IsDefined (Type attributeType, bool inherit);
abstract member IsDefined : Type * bool -> bool
override this.IsDefined : Type * bool -> bool
Public Overridable Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

Parameters

attributeType
Type

The type of the custom attribute.

inherit
Boolean

true to look up the hierarchy chain for the inherited custom attribute; otherwise, false.

Returns

Boolean

true if attributeType is defined for this member; otherwise, false.

Implements

Exceptions

The attritubeType parameter is null.

Applies to