WindowsIdentity.AuthenticationType 屬性

定義

取得用來識別使用者的驗證類型。

public:
 property System::String ^ AuthenticationType { System::String ^ get(); };
public:
 virtual property System::String ^ AuthenticationType { System::String ^ get(); };
public override sealed string AuthenticationType { get; }
public override sealed string? AuthenticationType { get; }
public virtual string AuthenticationType { get; }
public string AuthenticationType { get; }
member this.AuthenticationType : string
Public Overrides NotOverridable ReadOnly Property AuthenticationType As String
Public Overridable ReadOnly Property AuthenticationType As String
Public ReadOnly Property AuthenticationType As String

屬性值

用來識別使用者的驗證類型。

實作

例外狀況

Windows 會傳回 Windows NT 狀態碼 STATUS_ACCESS_DENIED。

可用的記憶體不足。

呼叫端沒有正確的權限。

-或-

電腦未附加到 Windows 2003 或更新版本的網域。

-或-

電腦未執行 Windows 2003 (含) 以後版本。

-或-

使用者不是電腦所附加之網域的成員。

備註

此屬性為參考性;安全性系統不會使用它。 在 Windows Vista 和更新版本的 Windows 作業系統上,此屬性的預設值為 Negotiate ,它會根據客戶設定的安全性原則,選擇最佳的安全性支援提供者 (SSP) 。 舊版 Windows 作業系統的預設屬性值為 Kerberos

適用於