JsonTypeInfo.Properties Property
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.
Gets the list of JsonPropertyInfo metadata corresponding to the current type.
public:
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
Remarks
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om