語言

JsonTypeInfo.Properties 屬性

定義

取得對應當前類型所需的元資料清單 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,但這只會在序列化時驗證,當中繼資料實例被鎖定以便進一步修改時。

適用於