JwtSecurityToken.Subject Property

Gets ‘value’ of the subject claim from JSON in the form of { sub, 'value' }.

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

Syntax

'Declaration
Public ReadOnly Property Subject As String
public string Subject { get; }
public:
property String^ Subject {
    String^ get ();
}
member Subject : string with get
function get Subject () : String

Property Value

Type: System.String
Returns String.

Remarks

If the subject claim is not found, null is returned.

.NET Framework Security

See Also

Reference

JwtSecurityToken Class

System.IdentityModel.Tokens Namespace