JsonTypeInfoKind 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
描述 JsonTypeInfo 指定的合約元數據類型。
public enum class JsonTypeInfoKind
public enum JsonTypeInfoKind
type JsonTypeInfoKind =
Public Enum JsonTypeInfoKind
- 繼承
欄位
| 名稱 | 值 | Description |
|---|---|---|
| None | 0 | 類型要麼是簡單的數值,要麼是使用自訂轉換器。 |
| Object | 1 | 型別會被序列化為具有屬性的物件。 |
| Enumerable | 2 | 類型以包含元素的集合序列化。 |
| Dictionary | 3 | 類型以字典形式序列化,並以鍵值對條目為序。 |
| Union | 4 |