UserNameSecurityToken.UserName Property

 

Gets the user name that is associated with the security token.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public string UserName { get; }

Property Value

Type: System.String

The user name that is associated with the security token.

.NET Framework
Available since 3.0
Return to top
Show: