TrustRelationshipInformationCollection.Contains 方法

定义

确定指定的 TrustRelationshipInformation 对象是否包含在此集合中。

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

参数

information
TrustRelationshipInformation

要在此集合中搜索的 TrustRelationshipInformation 对象。

返回

如果指定的对象在此集合中,则为 true;否则为 false

例外

informationnull

适用于

另请参阅