Forest.UpdateLocalSideOfTrustRelationship 方法

定義

更新信任關係本機端的密碼。

多載

UpdateLocalSideOfTrustRelationship(String, String)

更新信任關係本機端的密碼。

UpdateLocalSideOfTrustRelationship(String, TrustDirection, String)

更新信任關係本機端的密碼和信任方向。

UpdateLocalSideOfTrustRelationship(String, String)

來源:
Forest.cs
來源:
Forest.cs
來源:
Forest.cs

更新信任關係本機端的密碼。

public:
 void UpdateLocalSideOfTrustRelationship(System::String ^ targetForestName, System::String ^ newTrustPassword);
public void UpdateLocalSideOfTrustRelationship (string targetForestName, string newTrustPassword);
member this.UpdateLocalSideOfTrustRelationship : string * string -> unit
Public Sub UpdateLocalSideOfTrustRelationship (targetForestName As String, newTrustPassword As String)

參數

targetForestName
String

要變更本機信任密碼的 Forest 物件之名稱。

newTrustPassword
String

信任關係的新密碼。

例外狀況

targetForestName 指定的樹系之間沒有信任關係。

呼叫基礎目錄服務時,發生錯誤。

目標伺服器忙碌或無法使用。

targetForestNamenewTrustPassword 為空字串。

targetForestNamenewTrustPasswordnull

物件已被處置。

指定的帳戶沒有執行這項作業的權限。

另請參閱

適用於

UpdateLocalSideOfTrustRelationship(String, TrustDirection, String)

來源:
Forest.cs
來源:
Forest.cs
來源:
Forest.cs

更新信任關係本機端的密碼和信任方向。

public:
 void UpdateLocalSideOfTrustRelationship(System::String ^ targetForestName, System::DirectoryServices::ActiveDirectory::TrustDirection newTrustDirection, System::String ^ newTrustPassword);
public void UpdateLocalSideOfTrustRelationship (string targetForestName, System.DirectoryServices.ActiveDirectory.TrustDirection newTrustDirection, string newTrustPassword);
member this.UpdateLocalSideOfTrustRelationship : string * System.DirectoryServices.ActiveDirectory.TrustDirection * string -> unit
Public Sub UpdateLocalSideOfTrustRelationship (targetForestName As String, newTrustDirection As TrustDirection, newTrustPassword As String)

參數

targetForestName
String

Forest 物件的名稱,該物件的本機信任方向和密碼必須變更。

newTrustDirection
TrustDirection

信任關係之新信任方向的 TrustDirection 值。

newTrustPassword
String

信任關係的新密碼。

例外狀況

targetForestName 指定的 Forest 物件之間沒有信任關係。

呼叫基礎目錄服務時,發生錯誤。

目標伺服器忙碌或無法使用。

targetForestNamenewTrustPassword 為空字串。

targetForestNamenewTrustPasswordnull

newTrustDirection 參數不是有效的 TrustDirection 值。

物件已被處置。

指定的帳戶沒有執行這項作業的權限。

另請參閱

適用於