Bagikan melalui


ActiveDirectorySchemaClassCollection.Contains Metode

Definisi

Menentukan apakah objek yang ditentukan ActiveDirectorySchemaClass ada dalam koleksi ini.

public:
 bool Contains(System::DirectoryServices::ActiveDirectory::ActiveDirectorySchemaClass ^ schemaClass);
public bool Contains (System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaClass schemaClass);
member this.Contains : System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaClass -> bool
Public Function Contains (schemaClass As ActiveDirectorySchemaClass) As Boolean

Parameter

schemaClass
ActiveDirectorySchemaClass

Objek ActiveDirectorySchemaClass yang akan dicari dalam koleksi ini.

Mengembalikan

trueActiveDirectorySchemaClass jika objek berada dalam koleksi ini; jika tidak, false.

Pengecualian

Panggilan ke layanan direktori yang mendasar mengakibatkan kesalahan.

schemaClassadalah null.

Objek ActiveDirectorySchemaClass belum disimpan di penyimpanan Active Directory Domain Services.

Berlaku untuk

Lihat juga