共用方式為


ApplicationPartitionCollection.Contains(ApplicationPartition) 方法

定義

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

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

參數

applicationPartition
ApplicationPartition

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

傳回

如果 ApplicationPartition 在此集合中,則為 true,否則為 false

例外狀況

applicationPartitionnull

適用於

另請參閱