語言

JsonPropertyInfo.NumberHandling 屬性

定義

取得或設定 套 JsonNumberHandling 用到當前屬性。

public:
 property Nullable<System::Text::Json::Serialization::JsonNumberHandling> NumberHandling { Nullable<System::Text::Json::Serialization::JsonNumberHandling> get(); void set(Nullable<System::Text::Json::Serialization::JsonNumberHandling> value); };
public System.Text.Json.Serialization.JsonNumberHandling? NumberHandling { get; set; }
member this.NumberHandling : Nullable<System.Text.Json.Serialization.JsonNumberHandling> with get, set
Public Property NumberHandling As Nullable(Of JsonNumberHandling)

屬性值

例外狀況

該 JsonPropertyInfo 實例已被鎖定,無法進一步修改。

備註

對於來自 DefaultJsonTypeInfoResolver 或 JsonSerializerContext的合約,該屬性的價值將由 JsonNumberHandlingAttribute 註解映射出來。

適用於