Bewerken

Share via


Assembly.ICustomAttributeProvider.IsDefined(Type, Boolean) Method

Definition

Indicates whether one or more instance of attributeType is defined on this member.

 virtual bool System.Reflection.ICustomAttributeProvider.IsDefined(Type ^ attributeType, bool inherit) = System::Reflection::ICustomAttributeProvider::IsDefined;
bool ICustomAttributeProvider.IsDefined (Type attributeType, bool inherit);
abstract member System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
override this.System.Reflection.ICustomAttributeProvider.IsDefined : Type * bool -> bool
Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean Implements ICustomAttributeProvider.IsDefined

Parameters

attributeType
Type

The type of the custom attributes.

inherit
Boolean

When true, look up the hierarchy chain for the inherited custom attribute.

Returns

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

Implements

Applies to