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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應