Utf8JsonWriter.WritePropertyName メソッド

定義

オーバーロード

WritePropertyName(JsonEncodedText)

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

WritePropertyName(String)

JSON オブジェクトの名前/値ペアの最初の部分として、プロパティ名 (JSON 文字列) を書き込みます。

WritePropertyName(ReadOnlySpan<Byte>)

JSON オブジェクトの名前/値ペアの最初の部分として、UTF-8 プロパティ名 (JSON 文字列) を書き込みます。

WritePropertyName(ReadOnlySpan<Char>)

JSON オブジェクトの名前/値ペアの最初の部分として、プロパティ名 (JSON 文字列) を書き込みます。

WritePropertyName(JsonEncodedText)

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

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

public:
 void WritePropertyName(System::Text::Json::JsonEncodedText propertyName);
public void WritePropertyName (System.Text.Json.JsonEncodedText propertyName);
member this.WritePropertyName : System.Text.Json.JsonEncodedText -> unit
Public Sub WritePropertyName (propertyName As JsonEncodedText)

パラメーター

propertyName
JsonEncodedText

UTF-8 としてトランスコードおよび書き込み対象の JSON オブジェクトの JSON でエンコードされたプロパティ名。

例外

検証が有効化されると、この書き込み操作によって無効な JSON が生成される場合があります。

注釈

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

適用対象

WritePropertyName(String)

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

JSON オブジェクトの名前/値ペアの最初の部分として、プロパティ名 (JSON 文字列) を書き込みます。

public:
 void WritePropertyName(System::String ^ propertyName);
public void WritePropertyName (string propertyName);
member this.WritePropertyName : string -> unit
Public Sub WritePropertyName (propertyName As String)

パラメーター

propertyName
String

UTF-8 としてトランスコードおよび書き込み対象の JSON オブジェクトのプロパティ名。

例外

指定されたプロパティ名が長すぎます。

検証が有効化されると、この書き込み操作によって無効な JSON が生成される場合があります。

propertyNamenullです。

注釈

プロパティ名は、書き込む前にエスケープされます。

適用対象

WritePropertyName(ReadOnlySpan<Byte>)

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

JSON オブジェクトの名前/値ペアの最初の部分として、UTF-8 プロパティ名 (JSON 文字列) を書き込みます。

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

パラメーター

utf8PropertyName
ReadOnlySpan<Byte>

書き込み対象の JSON オブジェクトの UTF-8 でエンコードされたプロパティ名。

例外

指定されたプロパティ名が長すぎます。

検証が有効化されると、この書き込み操作によって無効な JSON が生成される場合があります。

注釈

プロパティ名は、書き込む前にエスケープされます。

適用対象

WritePropertyName(ReadOnlySpan<Char>)

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

JSON オブジェクトの名前/値ペアの最初の部分として、プロパティ名 (JSON 文字列) を書き込みます。

public:
 void WritePropertyName(ReadOnlySpan<char> propertyName);
public void WritePropertyName (ReadOnlySpan<char> propertyName);
member this.WritePropertyName : ReadOnlySpan<char> -> unit
Public Sub WritePropertyName (propertyName As ReadOnlySpan(Of Char))

パラメーター

propertyName
ReadOnlySpan<Char>

UTF-8 としてトランスコードおよび書き込み対象の JSON オブジェクトのプロパティ名。

例外

指定されたプロパティ名が長すぎます。

検証が有効化されると、この書き込み操作によって無効な JSON が生成される場合があります。

注釈

プロパティ名は、書き込む前にエスケープされます。

適用対象