共用方式為


SerializerFeature.AddKnownType(String, String) 方法

定義

將已知型別新增至 KnownTypes 屬性。

public void AddKnownType (string fullyQualifiedTypeName, string typeKey);
member this.AddKnownType : string * string -> unit
Public Sub AddKnownType (fullyQualifiedTypeName As String, typeKey As String)

參數

fullyQualifiedTypeName
String

完整型別名稱。

typeKey
String

輸入鍵。

適用於