JwtPayload.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.