共用方式為


ReadOnlyActiveDirectorySchemaClassCollection.Contains 方法

定義

判斷指定的 ActiveDirectorySchemaClass 物件是否在這個集合中。

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

參數

schemaClass
ActiveDirectorySchemaClass

要在此集合中搜尋的 ActiveDirectorySchemaClass 物件。

傳回

如果 ActiveDirectorySchemaClass 物件在此集合中,則為 true,否則為 false

例外狀況

schemaClass 參數為 null

適用於

另請參閱