HttpServerUtilityWrapper.UrlTokenEncode(Byte[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
利用 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。