ICustomAttributeProvider.IsDefined(Type, Boolean) Metode

Definisi

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

public:
 bool IsDefined(Type ^ attributeType, bool inherit);
public bool IsDefined (Type attributeType, bool inherit);
abstract member IsDefined : Type * bool -> bool
Public Function IsDefined (attributeType As Type, inherit As Boolean) As Boolean

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.

Berlaku untuk