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

Definition

Indicates whether a custom attribute identified by attributeType is defined.

public:
 override bool IsDefined(Type ^ attributeType, bool inherit);
public override bool IsDefined (Type attributeType, bool inherit);
override this.IsDefined : Type * bool -> bool
Public Overrides Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

Parameters

attributeType
Type Type Type Type

Specifies whether to search this type's inheritance chain to find the attributes.

inherit
Boolean Boolean Boolean Boolean

An array of custom attributes identified by type.

Returns

true if a custom attribute identified by attributeType is defined; otherwise, false.

Exceptions

Applies to