Click or drag to resize

HttpUtilityUrlEncodeToBytes(Byte, Int32, Int32) Method

Converts an array of bytes into a URL-encoded array of bytes, starting at the specified position in the array and continuing for the specified number of bytes.

Namespace: Crestron.SimplSharp.Net
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static byte[] UrlEncodeToBytes(
	byte[] bytes,
	int offset,
	int count
)

Parameters

bytes  Byte
The array of bytes to encode.
offset  Int32
The position in the byte array at which to begin encoding
count  Int32
The number of bytes to encode

Return Value

Byte
An encoded array of bytes
Exceptions
ExceptionCondition
ArgumentNullExceptionbytes is null, but count does not equal 0.
ArgumentOutOfRangeExceptionoffset 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