WebEncoders.Base64UrlDecode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Base64UrlDecode(String) |
Decodes a base64url-encoded string. |
Base64UrlDecode(String, Int32, Int32) |
Decodes a base64url-encoded substring of a given string. |
Base64UrlDecode(String, Int32, Char[], Int32, Int32) |
Decodes a base64url-encoded |
Base64UrlDecode(String)
- Source:
- WebEncoders.cs
Decodes a base64url-encoded string.
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()
Parameters
- input
- String
The base64url-encoded input to decode.
Returns
The base64url-decoded form of the input.
Remarks
The input must not contain any whitespace or padding characters. Throws FormatException if the input is malformed.
Applies to
Base64UrlDecode(String, Int32, Int32)
- Source:
- WebEncoders.cs
Decodes a base64url-encoded substring of a given string.
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()
Parameters
- input
- String
A string containing the base64url-encoded input to decode.
- offset
- Int32
The position in input
at which decoding should begin.
- count
- Int32
The number of characters in input
to decode.
Returns
The base64url-decoded form of the input.
Remarks
The input must not contain any whitespace or padding characters. Throws FormatException if the input is malformed.
Applies to
Base64UrlDecode(String, Int32, Char[], Int32, Int32)
- Source:
- WebEncoders.cs
Decodes a base64url-encoded input
into a 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()
Parameters
- input
- String
A string containing the base64url-encoded input to decode.
- offset
- Int32
The position in input
at which decoding should begin.
- buffer
- Char[]
Scratch buffer to hold the Chars to decode. Array must be large enough to hold
bufferOffset
and count
characters as well as Base64 padding
characters. Content is not preserved.
- count
- Int32
The number of characters in input
to decode.
Returns
The base64url-decoded form of the input
.
Remarks
The input must not contain any whitespace or padding characters. Throws FormatException if the input is malformed.