Share via


SettingsPropertyValue.SerializedValue 屬性

定義

取得或設定 SettingsProperty 物件的序列化值。

public:
 property System::Object ^ SerializedValue { System::Object ^ get(); void set(System::Object ^ value); };
public object SerializedValue { get; set; }
member this.SerializedValue : obj with get, set
Public Property SerializedValue As Object

屬性值

SettingsProperty 物件的序列化值。

例外狀況

屬性的序列化選項指示有使用字串型別轉換子,但是未提供型別轉換子。

備註

SettingsPropertyValue如果實例偵測到PropertyValue自上次SerializedValue呼叫屬性之後已變更屬性,它會導致PropertyValue屬性轉換成其串行化表示法。 要使用的特定串行化機制是由SerializeAs與 實例相關聯SettingsPropertyValue之實例上的 SettingsProperty 屬性所定義。 目前支援的串行化選項是使用字串類型轉換器將對象轉換成字元串、使用 XmlSerializer串行化,或執行二進位串行化。

注意

基礎串行化程式可能會在串行化程序期間擲回例外狀況。

適用於