KnownAssemblyAttribute.TreatTypesAsSerializable 属性

定义

获取或设置一个值,该值指示是否假定指定程序集中的所有类型都是可序列化的。

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

属性值

注解

这相当于为所有类型指定 KnownTypeAttribute

适用于