語言

Domain.GetSelectiveAuthenticationStatus(String) 方法

定義

決定入站信任的認證類型。

public:
 bool GetSelectiveAuthenticationStatus(System::String ^ targetDomainName);
public bool GetSelectiveAuthenticationStatus(string targetDomainName);
member this.GetSelectiveAuthenticationStatus : string -> bool
Public Function GetSelectiveAuthenticationStatus (targetDomainName As String) As Boolean

參數

targetDomainName
String

與信任相關的網域名稱。

傳回

true 如果信託的認證具有選擇性; false 如果認證是整個網域的。

例外狀況

與參數所指定的 Forest 不targetDomainName存在信任關係。

LsaQueryTrustedDomainInfoByName但打電話失敗了。 欲了解更多資訊,請參閱 LsaQueryTrustedDomainInfoByName。

目標伺服器要麼忙碌,要麼無法使用。

targetDomainName 是空字串。

targetDomainName 是 null。

目前的物體已被處理。

指定的帳號沒有執行此操作的權限。

適用於

另請參閱