IdentityUser<TKey>.UserName 属性

定义

获取或设置此用户的用户名。

public:
 virtual property System::String ^ UserName { System::String ^ get(); void set(System::String ^ value); };
public virtual string UserName { get; set; }
[Microsoft.AspNetCore.Identity.ProtectedPersonalData]
public virtual string UserName { get; set; }
[Microsoft.AspNetCore.Identity.ProtectedPersonalData]
public virtual string? UserName { get; set; }
member this.UserName : string with get, set
[<Microsoft.AspNetCore.Identity.ProtectedPersonalData>]
member this.UserName : string with get, set
Public Overridable Property UserName As String

属性值

属性

适用于