UIElement.ShouldSerializeCommandBindings メソッド
定義
シリアル化プロセスが、このクラスのインスタンスに関する CommandBindings プロパティの内容をシリアル化する必要があるかどうかを示す値を返します。Returns whether serialization processes should serialize the contents of the CommandBindings property on instances of this class.
public:
bool ShouldSerializeCommandBindings();
public bool ShouldSerializeCommandBindings ();
member this.ShouldSerializeCommandBindings : unit -> bool
Public Function ShouldSerializeCommandBindings () As Boolean
戻り値
true
プロパティ値をシリアル化する必要がある場合は CommandBindings。それ以外の場合は false
。true
if the CommandBindings property value should be serialized; otherwise, false
.
注釈
これは、CommandBindings がローカルに設定されている場合に true
を返します。This will return true
if CommandBindings is locally set.
この ShouldSerialize
メソッドは、CommandBindings プロパティに単純な既定値がないために用意されています。This ShouldSerialize
method is provided because the CommandBindings property does not have a simple default value. このメソッドは、プロパティが既定値から変更されたかどうかを示します。This method indicates whether the property has changed from its default value. 通常、このメソッドは、デザイナーを開発しているか、UIElementを組み込んだ独自のコントロールを開発している場合に呼び出します。You typically invoke this method if you are either developing a designer or developing your own control incorporating a UIElement.
詳細については、「 ShouldSerialize メソッドと Reset メソッドによる既定値の定義」を参照してください。For more information, see Defining Default Values with the ShouldSerialize and Reset Methods.