DataContractJsonSerializer.SerializeReadOnlyTypes 属性

定义

获取或设置指定是否序列化只读类型的值。

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

属性值

Boolean

仅序列化读取类型,则为 true;否则 false

适用于