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

适用于

另请参阅