TypeDelegator.IsDefined(Type, Boolean) Metode

Definisi

Menunjukkan apakah atribut kustom yang diidentifikasi oleh attributeType 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

Menentukan apakah akan mencari rantai pewarisan jenis ini untuk menemukan atribut.

inherit
Boolean

Array atribut kustom yang diidentifikasi berdasarkan jenis.

Mengembalikan

true jika atribut kustom yang diidentifikasi oleh attributeType ditentukan; jika tidak, false.

Pengecualian

attributeTypeadalah null.

Jenis atribut kustom tidak dapat dimuat.

Berlaku untuk