語言

JsonDerivedType 結構

定義

表示在多型型別元數據中定義的支援衍生型別。

public value class JsonDerivedType
public readonly struct JsonDerivedType
type JsonDerivedType = struct
Public Structure JsonDerivedType
繼承
JsonDerivedType

建構函式

名稱 Description
JsonDerivedType(Type, Int32)

初始化一個新的類別實例 JsonDerivedType ,代表一個支援的導出型別,並使用整數型別器。

JsonDerivedType(Type, String)

初始化一個新的類別實例 JsonDerivedType ,代表一個支援的衍生型別,並帶有字串型別器。

JsonDerivedType(Type)

初始化一個新的類別實例 JsonDerivedType ,代表一個沒有型別判別器的支援導出型態。

屬性

名稱 Description
DerivedType

會得到一個導出型別,該型別應該能在宣告基底型別的多態序列化中得到支援。

TypeDiscriminator

取得用於子型別序列化的型別識別碼。

適用於