IJsonWriter Interface
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.
Encapsulates logic for serializing objects to JSON.
public interface IJsonWriter
type IJsonWriter = interface
Public Interface IJsonWriter
Methods
WriteComma() |
Writes comma. |
WriteEndArray() |
Writes closing/right square bracket. |
WriteEndObject() |
Writes closing/right curly brace. |
WriteProperty(String, IDictionary<String,Double>) |
Writes a IDictionary<TKey,TValue> property. |
WriteProperty(String, IDictionary<String,String>) |
Writes a IDictionary<TKey,TValue> property. |
WriteProperty(String, Nullable<Boolean>) |
Writes a Boolean property. |
WriteProperty(String, Nullable<DateTimeOffset>) |
Writes a DateTimeOffset property. |
WriteProperty(String, Nullable<Double>) |
Writes a Double property. |
WriteProperty(String, Nullable<Int32>) |
Writes a Int32 property. |
WriteProperty(String, Nullable<TimeSpan>) |
Writes a TimeSpan property. |
WriteProperty(String, String) |
Writes a String property. |
WritePropertyName(String) |
Writes a property name in double quotation marks, followed by a colon. |
WriteRawValue(Object) |
Writes Object as raw value directly. |
WriteStartArray() |
Writes opening/left square bracket. |
WriteStartObject() |
Writes opening/left curly brace. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應