Bagikan melalui


ReflectedControllerDescriptor.IsDefined(Type, Boolean) Metode

Definisi

Mengembalikan nilai yang menunjukkan apakah satu atau beberapa instans jenis atribut kustom 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 jenis atribut kustom didefinisikan untuk anggota ini; jika tidak, salah.

Berlaku untuk