共用方式為


DataContractJsonSerializer.KnownTypes 屬性

定義

取得型別的集合,這些型別可能會存在於使用這個 DataContractJsonSerializer 執行個體所序列化的物件圖形中。

public:
 property System::Collections::ObjectModel::ReadOnlyCollection<Type ^> ^ KnownTypes { System::Collections::ObjectModel::ReadOnlyCollection<Type ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<Type> KnownTypes { get; }
member this.KnownTypes : System.Collections.ObjectModel.ReadOnlyCollection<Type>
Public ReadOnly Property KnownTypes As ReadOnlyCollection(Of Type)

屬性值

ReadOnlyCollection<T>,其中包含已當做已知型別傳入至 DataContractJsonSerializer 建構函式的預期型別。

適用於