UIElement.ShouldSerializeCommandBindings Méthode
Définition
Indique si les processus de sérialisation doivent sérialiser le contenu de la propriété CommandBindings sur les instances de cette classe.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
Retours
true
si la valeur de la propriété CommandBindings doit être sérialisée ; sinon, false
.true
if the CommandBindings property value should be serialized; otherwise, false
.
Remarques
La valeur est retournée true
si CommandBindings est défini localement.This will return true
if CommandBindings is locally set.
Cette méthode ShouldSerialize
est fournie, car la propriété CommandBindings n’a pas de valeur par défaut simple.This ShouldSerialize
method is provided because the CommandBindings property does not have a simple default value. Cette méthode indique si la propriété a été modifiée par rapport à sa valeur par défaut.This method indicates whether the property has changed from its default value. En général, vous appelez cette méthode si vous développez un concepteur ou que vous développez votre propre contrôle incorporant une UIElement.You typically invoke this method if you are either developing a designer or developing your own control incorporating a UIElement.
Pour plus d’informations, consultez définition des valeurs par défaut avec les méthodes ShouldSerialize et Reset.For more information, see Defining Default Values with the ShouldSerialize and Reset Methods.