IIdentity 接口

定义

定义标识对象的基本功能。Defines the basic functionality of an identity object.

public interface class IIdentity
public interface IIdentity
[System.Runtime.InteropServices.ComVisible(true)]
public interface IIdentity
type IIdentity = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type IIdentity = interface
Public Interface IIdentity
派生
属性

注解

标识对象表示运行代码的用户。An identity object represents the user on whose behalf the code is running. 此接口由 GenericIdentityWindowsIdentity 类实现。This interface is implemented by the GenericIdentity and WindowsIdentity classes.

属性

AuthenticationType

获取所使用的身份验证的类型。Gets the type of authentication used.

IsAuthenticated

获取一个值,该值指示是否验证了用户。Gets a value that indicates whether the user has been authenticated.

Name

获取当前用户的名称。Gets the name of the current user.

适用于