WebEncoders.Base64UrlDecode 方法

定义

重载

Base64UrlDecode(String)

解码 base64url 编码的字符串。

Base64UrlDecode(String, Int32, Int32)

解码给定字符串的 base64url 编码子字符串。

Base64UrlDecode(String, Int32, Char[], Int32, Int32)

将 base64url 编码的 input 解码为 byte[]

Base64UrlDecode(String)

Source:
WebEncoders.cs

解码 base64url 编码的字符串。

public:
 static cli::array <System::Byte> ^ Base64UrlDecode(System::String ^ input);
public static byte[] Base64UrlDecode (string input);
static member Base64UrlDecode : string -> byte[]
Public Shared Function Base64UrlDecode (input As String) As Byte()

参数

input
String

要解码的 base64url 编码输入。

返回

Byte[]

输入的 base64url-decoded 格式。

注解

输入不得包含任何空格或填充字符。 FormatException如果输入格式不正确,则引发 。

适用于

Base64UrlDecode(String, Int32, Int32)

Source:
WebEncoders.cs

解码给定字符串的 base64url 编码子字符串。

public:
 static cli::array <System::Byte> ^ Base64UrlDecode(System::String ^ input, int offset, int count);
public static byte[] Base64UrlDecode (string input, int offset, int count);
static member Base64UrlDecode : string * int * int -> byte[]
Public Shared Function Base64UrlDecode (input As String, offset As Integer, count As Integer) As Byte()

参数

input
String

包含要解码的 base64url 编码输入的字符串。

offset
Int32

应开始解码的位置 input

count
Int32

input 要解码的字符数。

返回

Byte[]

输入的 base64url-decoded 格式。

注解

输入不得包含任何空格或填充字符。 FormatException如果输入格式不正确,则引发 。

适用于

Base64UrlDecode(String, Int32, Char[], Int32, Int32)

Source:
WebEncoders.cs

将 base64url 编码的 input 解码为 byte[]

public:
 static cli::array <System::Byte> ^ Base64UrlDecode(System::String ^ input, int offset, cli::array <char> ^ buffer, int bufferOffset, int count);
public static byte[] Base64UrlDecode (string input, int offset, char[] buffer, int bufferOffset, int count);
static member Base64UrlDecode : string * int * char[] * int * int -> byte[]
Public Shared Function Base64UrlDecode (input As String, offset As Integer, buffer As Char(), bufferOffset As Integer, count As Integer) As Byte()

参数

input
String

包含要解码的 base64url 编码输入的字符串。

offset
Int32

应开始解码的位置 input

buffer
Char[]

用于保存 Char要解码的 的暂存缓冲区。 数组必须足够大,才能容纳 bufferOffsetcount 字符以及 Base64 填充字符。 内容不会保留。

bufferOffset
Int32

要开始编写 要解码的 Char的偏移量buffer

count
Int32

input 要解码的字符数。

返回

Byte[]

的 base64url-decoded 形式 input

注解

输入不得包含任何空格或填充字符。 FormatException如果输入格式不正确,则引发 。

适用于