Uređivanje

Dijeli putem


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

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

inherit
Boolean

An array of custom attributes identified by type.

Returns

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

Exceptions

attributeType is null.

The custom attribute type cannot be loaded.

Applies to