JsonConverter<T>.WriteAsPropertyName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes a dictionary key as a JSON property name.
public:
virtual void WriteAsPropertyName(System::Text::Json::Utf8JsonWriter ^ writer, T value, System::Text::Json::JsonSerializerOptions ^ options);
public virtual void WriteAsPropertyName (System.Text.Json.Utf8JsonWriter writer, T value, System.Text.Json.JsonSerializerOptions options);
abstract member WriteAsPropertyName : System.Text.Json.Utf8JsonWriter * 'T * System.Text.Json.JsonSerializerOptions -> unit
override this.WriteAsPropertyName : System.Text.Json.Utf8JsonWriter * 'T * System.Text.Json.JsonSerializerOptions -> unit
Public Overridable Sub WriteAsPropertyName (writer As Utf8JsonWriter, value As T, options As JsonSerializerOptions)
Parameters
- writer
- Utf8JsonWriter
The Utf8JsonWriter to write to.
- value
- T
The value to convert. The value of HandleNull determines if the converter handles null
values.
- options
- JsonSerializerOptions
The options to use when writing the value.
Remarks
This method should be overridden in custom converters of types used in serialized dictionary keys.
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.