Share via


DynamicMethod.IsDefined(Type, Boolean) Metode

Definisi

Menunjukkan apakah jenis atribut kustom yang ditentukan ditentukan.

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

Parameter

attributeType
Type

yang Type mewakili jenis atribut kustom untuk dicari.

inherit
Boolean

true untuk mencari rantai pewarisan metode untuk menemukan atribut kustom; false untuk memeriksa hanya metode saat ini.

Mengembalikan

true jika jenis atribut kustom yang ditentukan ditentukan; jika tidak, false.

Keterangan

Untuk metode dinamis, menentukan true untuk inherit tidak berpengaruh. Metode dinamis tidak memiliki rantai pewarisan.

Catatan

Atribut kustom saat ini tidak didukung pada metode dinamis.

Berlaku untuk

Lihat juga