Share via


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

適用於