DataContractJsonSerializer.SerializeReadOnlyTypes 属性

定义

获取或设置一个值,该值指定是否序列化只读类型。

public:
 property bool SerializeReadOnlyTypes { bool get(); };
public bool SerializeReadOnlyTypes { get; }
member this.SerializeReadOnlyTypes : bool
Public ReadOnly Property SerializeReadOnlyTypes As Boolean

属性值

true 序列化只读类型;否则 false

适用于