MemberInfo.ICustomAttributeProvider.IsDefined(Type, Boolean) Metode

Definisi

Menunjukkan apakah satu atau beberapa attributeType instans ditentukan pada anggota ini.

 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

Parameter

attributeType
Type

Jenis atribut kustom.

inherit
Boolean

Saat true, cari rantai hierarki untuk atribut kustom yang diwariskan.

Mengembalikan

trueattributeType jika ditentukan pada anggota ini; false jika tidak.

Penerapan

Berlaku untuk