ForestTrustRelationshipCollisionCollection.Contains(ForestTrustRelationshipCollision) 方法

定义

确定指定 ForestTrustRelationshipCollision 对象是否在此集合中。Determines if the specified ForestTrustRelationshipCollision object is in this collection.

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 对象。The ForestTrustRelationshipCollision object to search for in this collection.

返回

如果 ForestTrustRelationshipCollision 对象在此集合中,则为 true;否则为 falsetrue if the ForestTrustRelationshipCollision object is in the collection; otherwise, false.

异常

collisionnullcollision is null.

适用于

另请参阅