共用方式為


ReadOnlyActiveDirectorySchemaPropertyCollection.Contains 方法

定義

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

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

參數

schemaProperty
ActiveDirectorySchemaProperty

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

傳回

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

例外狀況

schemaPropertynull

適用於

另請參閱