KnownAssemblyAttribute.TreatTypesAsSerializable 屬性

定義

取得或設定值,指出是否要假設指定元件中的所有類型都是可序列化的。

public bool TreatTypesAsSerializable { get; set; }
member this.TreatTypesAsSerializable : bool with get, set
Public Property TreatTypesAsSerializable As Boolean

屬性值

備註

這相當於針對所有類型指定 KnownTypeAttribute

適用於