Bewerken

Delen via


HttpServerUtility.UrlTokenDecode(String) Method

Definition

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

public:
 static cli::array <System::Byte> ^ UrlTokenDecode(System::String ^ input);
public static byte[] UrlTokenDecode (string input);
static member UrlTokenDecode : string -> byte[]
Public Shared Function UrlTokenDecode (input As String) As Byte()

Parameters

input
String

The URL string token to decode.

Returns

Byte[]

The byte array containing the decoded URL string token.

Exceptions

The value of the input parameter is null.

Remarks

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.

Applies to

See also