UrlEncodingTryDecodeToBytes(String, Boolean, Byte) Method
Tries to decode a URL-encoded
String to a
Byte array and allows to specify whether or not PLUS characters ('+', U+002B) should
be decoded to
0x20 (SPACE ' ').
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static bool TryDecodeToBytes(
string? value,
bool decodePlusChars,
out byte[]?? bytes
)
Public Shared Function TryDecodeToBytes (
value As String,
decodePlusChars As Boolean,
<OutAttribute> ByRef bytes As Byte()
) As Boolean
public:
static bool TryDecodeToBytes(
String^ value,
bool decodePlusChars,
[OutAttribute] array<unsigned char>^% bytes
)
static member TryDecodeToBytes :
value : string *
decodePlusChars : bool *
bytes : byte[] byref -> bool
- value String
- The String to decode, or null.
- decodePlusChars Boolean
- true to decode PLUS characters ('+', U+002B)
to 0x20 (SPACE ' '), or false to include the PLUS characters unchanged
as 0x2B in bytes.
- bytes Byte
- After the method completes successfully, contains a Byte array that represents the decoded content of value.
Booleantrue if the decoding was successful, otherwise
false.