Share via


JwtPayload.Encode Method

Encodes this instance as a [Base64UrlEncoded] string.

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

Syntax

'Declaration
Public Function Encode As String
public string Encode()
public:
String^ Encode()
member Encode : unit -> string
public function Encode() : String

Return Value

Type: System.String
Returns String.

Remarks

Returns the current state. If this instance has changed since the last call, the value will be different. No cryptographic operations are performed. See JwtSecurityTokenHandler for more information.

.NET Framework Security

See Also

Reference

JwtPayload Class

System.IdentityModel.Tokens Namespace