語言

JsonDerivedType 建構函式

定義

多載

名稱 Description
JsonDerivedType(Type)

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

JsonDerivedType(Type, Int32)

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

JsonDerivedType(Type, String)

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

JsonDerivedType(Type)

來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs

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

public:
 JsonDerivedType(Type ^ derivedType);
public JsonDerivedType(Type derivedType);
new System.Text.Json.Serialization.Metadata.JsonDerivedType : Type -> System.Text.Json.Serialization.Metadata.JsonDerivedType
Public Sub New (derivedType As Type)

參數

derivedType
Type

派生型別應由多型型態元資料支持。

適用於

JsonDerivedType(Type, Int32)

來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs

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

public:
 JsonDerivedType(Type ^ derivedType, int typeDiscriminator);
public JsonDerivedType(Type derivedType, int typeDiscriminator);
new System.Text.Json.Serialization.Metadata.JsonDerivedType : Type * int -> System.Text.Json.Serialization.Metadata.JsonDerivedType
Public Sub New (derivedType As Type, typeDiscriminator As Integer)

參數

derivedType
Type

派生型別應由多型型態元資料支持。

typeDiscriminator
Int32

型別器將與導出型別相關聯。

適用於

JsonDerivedType(Type, String)

來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs
來源:
JsonDerivedType.cs

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

public:
 JsonDerivedType(Type ^ derivedType, System::String ^ typeDiscriminator);
public JsonDerivedType(Type derivedType, string typeDiscriminator);
new System.Text.Json.Serialization.Metadata.JsonDerivedType : Type * string -> System.Text.Json.Serialization.Metadata.JsonDerivedType
Public Sub New (derivedType As Type, typeDiscriminator As String)

參數

derivedType
Type

派生型別應由多型型態元資料支持。

typeDiscriminator
String

型別器將與導出型別相關聯。

適用於