Utf8JsonWriter.WritePropertyName メソッド

定義

オーバーロード

名前 説明
WritePropertyName(ReadOnlySpan<Byte>)

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

WritePropertyName(ReadOnlySpan<Char>)

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

WritePropertyName(String)

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

WritePropertyName(JsonEncodedText)

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

WritePropertyName(ReadOnlySpan<Byte>)

ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
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
ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
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 が生成されます。

注釈

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

適用対象

WritePropertyName(String)

ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
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(JsonEncodedText)

ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
Utf8JsonWriter.WriteProperties.String.cs
ソース:
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 のインスタンスが作成されたときに既にエスケープされている必要があります。

適用対象