WindowsIdentity.AuthenticationType 属性
定义
获取用于标识用户的身份验证的类型。Gets the type of authentication used to identify the user.
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
属性值
用于标识用户的身份验证的类型。The type of authentication used to identify the user.
实现
例外
Windows 返回 Windows NT 状态代码 STATUS_ACCESS_DENIED。Windows returned the Windows NT status code STATUS_ACCESS_DENIED.
没有足够的可用内存。There is insufficient memory available.
调用方没有正确的权限。The caller does not have the correct permissions.
或-or-
计算机未连接到 Windows 2003 或更高版本的域。The computer is not attached to a Windows 2003 or later domain.
或-or-
计算机没有运行 Windows 2003 或更高版本。The computer is not running Windows 2003 or later.
或-or-
用户不是计算机所连接域的成员。The user is not a member of the domain the computer is attached to.
注解
此属性是信息性的;它不会被安全系统使用。This property is informational; it is not used by the security system. 在 Windows Vista 和更高版本的 Windows 操作系统上,此属性的默认值为 Negotiate ,它根据客户配置的安全策略 (SSP) 选择最佳安全支持提供程序。On Windows Vista and later versions of the Windows operating system, the default value for this property is Negotiate, which chooses the best security support provider (SSP) based on customer-configured security policy. 早期版本的 Windows 操作系统的默认属性值为 Kerberos 。The default property value for earlier versions of the Windows operating system is Kerberos.