語言

DataContractJsonSerializerSettings.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。

適用於