JsonTypeInfo.Properties 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得對應當前類型所需的元資料清單 JsonPropertyInfo 。
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)
屬性值
備註
此特性僅適用於類型的 Object元資料。 其他類型則會回傳一個空的唯讀清單。
列表中條目的順序JsonPropertyInfo決定序列化順序,除非任一條目指定非零Order值,此時屬性將穩定排序。Order
新增的條目必須 JsonPropertyInfo 在 之前是唯一的 Name,但這只會在序列化時驗證,當中繼資料實例被鎖定以便進一步修改時。