Switch.Value 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定交換器的值。
public:
property System::String ^ Value { System::String ^ get(); void set(System::String ^ value); };
protected:
property System::String ^ Value { System::String ^ get(); void set(System::String ^ value); };
public string Value { get; set; }
protected string Value { get; set; }
member this.Value : string with get, set
Public Property Value As String
Protected Property Value As String
屬性值
一個代表開關值的字串。
例外狀況
備註
當房產價值Value變動時,會呼叫此OnValueChanged方法。 該 OnValueChanged 方法解析此屬性的值並將其轉換為整數值,接著用來設定 SwitchSetting 該屬性。
給繼承者的注意事項
你應該覆寫這個方法, OnValueChanged() 並提供一個轉換操作來設定適合 SwitchSetting 你的交換器值。