System.Web.HttpServerUtility.UrlTokenDecode Method

Decodes a URL string token to its equivalent byte array using base 64 digits.

Syntax

public static byte[] UrlTokenDecode (string input)

Parameters

input
The URL string token to decode.

Returns

The byte array containing the decoded URL string token.

Remarks

The HttpServerUtility.UrlTokenDecode(string) method converts a URL string token, which encodes binary data as base 64 digits, to its equivalent byte array representation. Use the HttpServerUtility.UrlTokenDecode(string) method to decode tokens transmitted on the URL and encoded by using the HttpServerUtility.UrlTokenEncode(Byte[]).

The HttpServerUtility.UrlTokenDecode(string) method will return an empty byte array if the input parameter has a length of less than one.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0