ControllerDescriptor.IsDefined(Type, Boolean) ControllerDescriptor.IsDefined(Type, Boolean) ControllerDescriptor.IsDefined(Type, Boolean) Method

Definition

Retrieves a value that indicates whether one or more instance of the specified custom attribute 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 Type Type

The type of the custom attribute.

inherit
Boolean Boolean Boolean

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

Returns

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

Exceptions

The attributeType parameter is null (Nothing in Visual Basic).

Applies to