語言

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。

適用於