DataContractSerializerSettings.KnownTypes 属性

定义

获取或设置可能存在于通过使用此实例 DataContractSerializerSettings 所序列化的对象关系图中的类型集合。

public:
 property System::Collections::Generic::IEnumerable<Type ^> ^ KnownTypes { System::Collections::Generic::IEnumerable<Type ^> ^ get(); void set(System::Collections::Generic::IEnumerable<Type ^> ^ value); };
public System.Collections.Generic.IEnumerable<Type> KnownTypes { get; set; }
public System.Collections.Generic.IEnumerable<Type>? KnownTypes { get; set; }
member this.KnownTypes : seq<Type> with get, set
Public Property KnownTypes As IEnumerable(Of Type)

属性值

一个类型集合,这些类型可能出现在使用此 DataContractSerializerSettings 实例序列化的对象图中。

适用于