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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈