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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈