Export (0) Print
Expand All

HttpServerUtility.UrlTokenDecode Method

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

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public static byte[] UrlTokenDecode (
	string input
)
public static byte[] UrlTokenDecode (
	String input
)
public static function UrlTokenDecode (
	input : String
) : byte[]
Not applicable.

Parameters

input

The URL string token to decode.

Return Value

The byte array containing the decoded URL string token.

Exception typeCondition

ArgumentNullException

The value of the input parameter is a null reference (Nothing in Visual Basic).

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

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft