HttpUtilityUrlDecode(Byte, Int32, Int32, Encoding) Method |
Converts a URL-encoded byte array into a decoded string using the specified encoding object,
starting at the specified position in the array, and continuing for the specified number of bytes.
Namespace: Crestron.SimplSharp.NetAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic static string UrlDecode(
byte[] bytes,
int offset,
int count,
Encoding e
)
Parameters
- bytes Byte
- The array of bytes to decode
- offset Int32
- The position in the byte to begin decoding.
- count Int32
- The number of bytes to decode.
- e Encoding
- A Encoding object.
Return Value
StringA decoded string.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | bytes is null, but count does not equal 0. |
| ArgumentOutOfRangeException | offset is less than 0 or greater than the length of the bytes array.
- or - count is less than 0, or count + offset is greater than the length of the bytes array |
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also