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 构造函数的预期类型。

适用于