共用方式為


Base64Url.EncodeToString(ReadOnlySpan<Byte>) 方法

定義

將二進位數據的範圍編碼為以Base64Url ASCII字元表示的 Unicode 字串。

public:
 static System::String ^ EncodeToString(ReadOnlySpan<System::Byte> source);
public static string EncodeToString(ReadOnlySpan<byte> source);
static member EncodeToString : ReadOnlySpan<byte> -> string
Public Shared Function EncodeToString (source As ReadOnlySpan(Of Byte)) As String

參數

source
ReadOnlySpan<Byte>

輸入範圍,其中包含需要編碼的二進位數據。

傳回

字串,其中包含作業的結果,也就是Base64Url中的ASCII字串。

備註

base64url 編碼的這個實作會省略選擇性填補字元。

適用於