PrincipalPermissionAttribute.Name PrincipalPermissionAttribute.Name PrincipalPermissionAttribute.Name PrincipalPermissionAttribute.Name Property

定义

获取或设置与当前用户关联的身份名称。Gets or sets the name of the identity associated with the current principal.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

属性值

与基于角色的基础安全提供程序提供的名称匹配的名称。A name to match against that provided by the underlying role-based security provider.

注解

如果身份验证提供程序是 Windows NTName相同 (在窗体"域名 \ 用户名") 的用户的 Windows NT 登录名。If the authentication provider is Windows NT, Name is the same as the user's Windows NT login name (in the form "DomainName\UserName"). 查看你的主机以确定它使用的身份验证提供程序以及它如何确定当前主体的标识的文档。Check the documentation of your host to determine which authentication provider it uses and how it determines the identity of the current principal.

适用于