Export (0) Print
Expand All

HttpServerUtility.UrlTokenDecode Method

Note: This method is new in the .NET Framework version 2.0.

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[]

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 input 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 using the UrlTokenEncode.

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

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft