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

适用于