HttpServerUtilityWrapper.UrlTokenEncode(Byte[]) 方法

定義

利用 base64 數字將位元組陣列編碼成等效的字串表示法,使其可用於 URL 傳輸。

public:
 override System::String ^ UrlTokenEncode(cli::array <System::Byte> ^ input);
public override string UrlTokenEncode(byte[] input);
override this.UrlTokenEncode : byte[] -> string
Public Overrides Function UrlTokenEncode (input As Byte()) As String

參數

input
Byte[]

要編碼的位元組陣列。

傳回

當 的 input 長度大於 1 時,包含編碼陣列的字串;否則,則為空字串(“”)。

例外狀況

參數的 input 值為 null

適用於