Utf8JsonWriter.WriteBase64String メソッド

定義

オーバーロード

名前 説明
WriteBase64String(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

JSON オブジェクトの名前と値のペアの一部として、プロパティ名と生バイト値 (Base64 でエンコードされた JSON 文字列として) を書き込みます。

WriteBase64String(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

JSON オブジェクトの名前と値のペアの一部として、プロパティ名と生バイト値 (Base64 でエンコードされた JSON 文字列として) を書き込みます。

WriteBase64String(String, ReadOnlySpan<Byte>)

JSON オブジェクトの名前と値のペアの一部として、プロパティ名と生バイト値 (Base64 でエンコードされた JSON 文字列として) を書き込みます。

WriteBase64String(JsonEncodedText, ReadOnlySpan<Byte>)

JSON オブジェクトの名前と値のペアの一部として、事前にエンコードされたプロパティ名と生のバイト値 (Base64 でエンコードされた JSON 文字列として) を書き込みます。

WriteBase64String(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)

ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs

JSON オブジェクトの名前と値のペアの一部として、プロパティ名と生バイト値 (Base64 でエンコードされた JSON 文字列として) を書き込みます。

public:
 void WriteBase64String(ReadOnlySpan<System::Byte> utf8PropertyName, ReadOnlySpan<System::Byte> bytes);
public void WriteBase64String(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> bytes);
member this.WriteBase64String : ReadOnlySpan<byte> * ReadOnlySpan<byte> -> unit
Public Sub WriteBase64String (utf8PropertyName As ReadOnlySpan(Of Byte), bytes As ReadOnlySpan(Of Byte))

パラメーター

utf8PropertyName
ReadOnlySpan<Byte>

書き込むプロパティの UTF-8 でエンコードされた名前。

bytes
ReadOnlySpan<Byte>

Base64 でエンコードされたテキストとして書き込むバイナリ データ。

例外

指定されたプロパティ名または値が大きすぎます。

検証が有効になっており、このメソッドによって無効な JSON が書き込まれます。

注釈

Base64 として書き込むバイナリ データの最大許容サイズは、125,000,000 バイト (または約 125 MB) です。 この制限を超えると、 ArgumentException がスローされます。

プロパティ名はエスケープされ、バイトは書き込む前にエンコードされます。

適用対象

WriteBase64String(ReadOnlySpan<Char>, ReadOnlySpan<Byte>)

ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs

JSON オブジェクトの名前と値のペアの一部として、プロパティ名と生バイト値 (Base64 でエンコードされた JSON 文字列として) を書き込みます。

public:
 void WriteBase64String(ReadOnlySpan<char> propertyName, ReadOnlySpan<System::Byte> bytes);
public void WriteBase64String(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes);
member this.WriteBase64String : ReadOnlySpan<char> * ReadOnlySpan<byte> -> unit
Public Sub WriteBase64String (propertyName As ReadOnlySpan(Of Char), bytes As ReadOnlySpan(Of Byte))

パラメーター

propertyName
ReadOnlySpan<Char>

トランスコードされ、UTF-8 として書き込まれる JSON オブジェクトのプロパティ名。

bytes
ReadOnlySpan<Byte>

Base64 でエンコードされたテキストとして書き込むバイナリ データ。

例外

指定されたプロパティ名または値が大きすぎます。

検証が有効になっており、このメソッドによって無効な JSON が書き込まれます。

注釈

Base64 として書き込むバイナリ データの最大許容サイズは、125,000,000 バイト (または約 125 MB) です。 この制限を超えると、 ArgumentException がスローされます。

プロパティ名はエスケープされ、バイトは書き込む前にエンコードされます。

適用対象

WriteBase64String(String, ReadOnlySpan<Byte>)

ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs

JSON オブジェクトの名前と値のペアの一部として、プロパティ名と生バイト値 (Base64 でエンコードされた JSON 文字列として) を書き込みます。

public:
 void WriteBase64String(System::String ^ propertyName, ReadOnlySpan<System::Byte> bytes);
public void WriteBase64String(string propertyName, ReadOnlySpan<byte> bytes);
member this.WriteBase64String : string * ReadOnlySpan<byte> -> unit
Public Sub WriteBase64String (propertyName As String, bytes As ReadOnlySpan(Of Byte))

パラメーター

propertyName
String

トランスコードされ、UTF-8 として書き込まれる JSON オブジェクトのプロパティ名。

bytes
ReadOnlySpan<Byte>

Base64 でエンコードされたテキストとして書き込むバイナリ データ。

例外

指定されたプロパティ名または値が大きすぎます。

検証が有効になっており、このメソッドによって無効な JSON が書き込まれます。

propertyName パラメーターはnull

注釈

Base64 として書き込むバイナリ データの最大許容サイズは、125,000,000 バイト (または約 125 MB) です。 この制限を超えると、 ArgumentException がスローされます。

プロパティ名はエスケープされ、バイトは書き込む前にエンコードされます。

適用対象

WriteBase64String(JsonEncodedText, ReadOnlySpan<Byte>)

ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs
ソース:
Utf8JsonWriter.WriteProperties.Bytes.cs

JSON オブジェクトの名前と値のペアの一部として、事前にエンコードされたプロパティ名と生のバイト値 (Base64 でエンコードされた JSON 文字列として) を書き込みます。

public:
 void WriteBase64String(System::Text::Json::JsonEncodedText propertyName, ReadOnlySpan<System::Byte> bytes);
public void WriteBase64String(System.Text.Json.JsonEncodedText propertyName, ReadOnlySpan<byte> bytes);
member this.WriteBase64String : System.Text.Json.JsonEncodedText * ReadOnlySpan<byte> -> unit
Public Sub WriteBase64String (propertyName As JsonEncodedText, bytes As ReadOnlySpan(Of Byte))

パラメーター

propertyName
JsonEncodedText

書き込むプロパティの JSON エンコード名。

bytes
ReadOnlySpan<Byte>

Base64 でエンコードされたテキストとして書き込むバイナリ データ。

例外

指定された値が大きすぎます。

検証が有効になっており、このメソッドによって無効な JSON が書き込まれます。

注釈

Base64 として書き込むバイナリ データの最大許容サイズは、125,000,000 バイト (または約 125 MB) です。 この制限を超えると、 ArgumentException がスローされます。

プロパティ名は、 JsonEncodedText のインスタンスが作成されたときに既にエスケープされている必要があります。

バイトは書き込む前にエンコードされます。

適用対象