JsonTypeInfoKind 列舉

定義

描述 指定之合約中繼資料 JsonTypeInfo 的類型。

C#
public enum JsonTypeInfoKind
繼承
JsonTypeInfoKind

欄位

名稱 Description
Dictionary 3

類型會序列化為具有索引鍵/值組專案的字典。

Enumerable 2

類型會序列化為具有元素的集合。

None 0

類型為簡單值,或使用自訂轉換器。

Object 1

類型會序列化為具有屬性的物件。

適用於

產品 版本
.NET 6, 7, 8, 9
.NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0