Bagikan melalui


ReflectedAsyncControllerDescriptor.IsDefined(Type, Boolean) Metode

Definisi

Mengembalikan nilai yang menunjukkan apakah satu atau beberapa instans atribut kustom yang ditentukan ditentukan untuk anggota ini.

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

Jenis atribut kustom.

inherit
Boolean

true untuk mencari rantai hierarki untuk atribut kustom yang diwariskan; jika tidak, salah.

Mengembalikan

true jika atribut jenis yang diwakili oleh attributeType didefinisikan untuk anggota ini; jika tidak, salah.

Berlaku untuk