Module.ICustomAttributeProvider.IsDefined(Type, Boolean) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
true
attributeType jika ditentukan pada anggota ini; false jika tidak.