共用方式為


ForestTrustRelationshipCollisionCollection.Contains 方法

定義

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

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

參數

collision
ForestTrustRelationshipCollision

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

傳回

如果 ForestTrustRelationshipCollision 物件包含在集合裡,則為 true,否則為 false

例外狀況

collisionnull

適用於

另請參閱