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

Definition

Indicates whether one or more instances of a custom 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 Type Type

The type of the custom attributes.

inherit
Boolean Boolean Boolean

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

Returns

true if the custom attribute type is defined for this member; otherwise, false.

Exceptions

Applies to