DataContractSerializerSettings.SerializeReadOnlyTypes 属性

定义

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

public:
 property bool SerializeReadOnlyTypes { bool get(); void set(bool value); };
public bool SerializeReadOnlyTypes { get; set; }
member this.SerializeReadOnlyTypes : bool with get, set
Public Property SerializeReadOnlyTypes As Boolean

属性值

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

适用于