Base64UrlTextEncoder.Encode Method
Converts a data to a string that is in the Base64Url format.
Namespace: Microsoft.Owin.Security.DataHandler.Encoder
Assembly: Microsoft.Owin.Security (in Microsoft.Owin.Security.dll)
Syntax
'Declaration
Public Function Encode ( _
data As Byte() _
) As String
'Usage
Dim instance As Base64UrlTextEncoder
Dim data As Byte()
Dim returnValue As String
returnValue = instance.Encode(data)
public string Encode(
byte[] data
)
public:
virtual String^ Encode(
array<unsigned char>^ data
) sealed
abstract Encode :
data:byte[] -> string
override Encode :
data:byte[] -> string
public final function Encode(
data : byte[]
) : String
Parameters
- data
Type: System.Byte[]
The data to convert.
Return Value
Type: System.String
A string of data converted to the Base64Url format.