語言

JsonElement.GetBytesFromBase64 方法

定義

以位元組陣列的形式取得元素的值。

public:
 cli::array <System::Byte> ^ GetBytesFromBase64();
public byte[] GetBytesFromBase64();
member this.GetBytesFromBase64 : unit -> byte[]
Public Function GetBytesFromBase64 () As Byte()

傳回

Byte[]

解碼後的值會以位元組陣列形式解碼。

例外狀況

這個值的 ValueKind 值不是 String。

該值並非以 Base64 文字編碼,因此無法解碼為位元組。

父母 JsonDocument 已被處理掉。

備註

此方法不會產生除 Base64 編碼的 JSON 字串以外的位元組表示值。

適用於

另請參閱