JsonPropertyInfo.NumberHandling Property

Definition

Gets or sets the JsonNumberHandling applied to the current property.

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)

Property Value

Exceptions

The JsonPropertyInfo instance has been locked for further modification.

Remarks

For contracts originating from DefaultJsonTypeInfoResolver or JsonSerializerContext, the value of this property will be mapped from JsonNumberHandlingAttribute annotations.

Applies to