Bagikan melalui


ReadOnlyActiveDirectorySchemaPropertyCollection.Contains Metode

Definisi

Menentukan apakah objek yang ditentukan ActiveDirectorySchemaProperty ada dalam koleksi ini.

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

Parameter

schemaProperty
ActiveDirectorySchemaProperty

Objek ActiveDirectorySchemaProperty yang akan dicari dalam koleksi ini.

Mengembalikan

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

Pengecualian

schemaPropertyadalah null.

Berlaku untuk

Lihat juga