HttpServerUtility.UrlTokenEncode(Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encodes a byte array into its equivalent string representation using base 64 digits, which is usable for transmission on the URL.
public:
static System::String ^ UrlTokenEncode(cli::array <System::Byte> ^ input);
public static string UrlTokenEncode (byte[] input);
static member UrlTokenEncode : byte[] -> string
Public Shared Function UrlTokenEncode (input As Byte()) As String
Parameters
- input
- Byte[]
The byte array to encode.
Returns
The string containing the encoded token if the byte array length is greater than one; otherwise, an empty string ("").
Exceptions
The value of the input
parameter is null
.
Remarks
The UrlTokenEncode method converts a byte array into an equivalent string representation encoded with base 64 digits. The resulting string token can be transmitted on the URL.
The UrlTokenEncode will return an empty string if the input
parameter has a length of less than one.
Applies to
See also
.NET