Language

Forest.GetTrustRelationship(String) メソッド

定義

このフォレストと指定したフォレストの間の信頼関係を取得します。

public:
 System::DirectoryServices::ActiveDirectory::ForestTrustRelationshipInformation ^ GetTrustRelationship(System::String ^ targetForestName);
public System.DirectoryServices.ActiveDirectory.ForestTrustRelationshipInformation GetTrustRelationship(string targetForestName);
member this.GetTrustRelationship : string -> System.DirectoryServices.ActiveDirectory.ForestTrustRelationshipInformation
Public Function GetTrustRelationship (targetForestName As String) As ForestTrustRelationshipInformation

パラメーター

targetForestName
String

信頼関係情報を取得する Forest オブジェクトの名前。

返品

このフォレストと指定したフォレストの間の信頼関係を表す ForestTrustRelationshipInformation オブジェクト。

例外

Forestで指定されたtargetForestNameとの信頼関係はありません。

基になるディレクトリ サービスを呼び出すと、エラーが発生しました。

ターゲット サーバーがビジー状態であるか、使用できません。

targetForestName は空の文字列です。

targetForestName は nullです。

現在のオブジェクトが破棄されました。

指定されたアカウントには、この操作を実行するアクセス許可がありません。

適用対象

こちらもご覧ください