DataContractSerializer.SerializeReadOnlyTypes 属性      
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定只读类型是否序列化的值。
public:
 property bool SerializeReadOnlyTypes { bool get(); };public bool SerializeReadOnlyTypes { get; }member this.SerializeReadOnlyTypes : boolPublic ReadOnly Property SerializeReadOnlyTypes As Boolean属性值
如果序列化只读类型,则为 true;如果序列化所有类型,则为 false。