共用方式為


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 執行個體所序列化的物件圖形中。

適用於