共用方式為


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

適用於

另請參閱