JsonTypeInfo.Properties Property


Gets the list of JsonPropertyInfo metadata corresponding to the current type.

 property System::Collections::Generic::IList<System::Text::Json::Serialization::Metadata::JsonPropertyInfo ^> ^ Properties { System::Collections::Generic::IList<System::Text::Json::Serialization::Metadata::JsonPropertyInfo ^> ^ get(); };
public System.Collections.Generic.IList<System.Text.Json.Serialization.Metadata.JsonPropertyInfo> Properties { get; }
member this.Properties : System.Collections.Generic.IList<System.Text.Json.Serialization.Metadata.JsonPropertyInfo>
Public ReadOnly Property Properties As IList(Of JsonPropertyInfo)

Property Value



This property is only applicable to metadata of kind Object. For other kinds, an empty, read-only list will be returned.

The order of JsonPropertyInfo entries in the list determines the serialization order, unless either of the entries specifies a non-zero Order value, in which case the properties will be stable sorted by Order.

It's required that added JsonPropertyInfo entries are unique up to Name, however this will only be validated on serialization, once the metadata instance gets locked for further modification.

Applies to