PropertyValue.CatchExceptions, propriété

Obtient une valeur qui indique comment gérer les exceptions qui se produisent pendant l'exécution des méthodes Get et Set des propriétés Value et StringValue.

Espace de noms :  Microsoft.Windows.Design.PropertyEditing
Assembly :  Microsoft.Windows.Design.Interaction (dans Microsoft.Windows.Design.Interaction.dll)

Syntaxe

'Déclaration
Protected Overridable ReadOnly Property CatchExceptions As Boolean
    Get
protected virtual bool CatchExceptions { get; }
protected:
virtual property bool CatchExceptions {
    bool get ();
}
abstract CatchExceptions : bool
override CatchExceptions : bool
function get CatchExceptions () : boolean

Valeur de propriété

Type : System.Boolean
true si l'exception doit être interceptée; false si l'exception doit être propagée à l'appelant.

Notes

Si CatchExceptions a la valeur true, les méthodes Get et Set des propriétés Value et StringValue appellent OnPropertyValueException, qui déclenche le gestionnaire PropertyValueException.

Par défaut, cette propriété a la valeur true s'il existe au moins un abonné à l'événement PropertyValueException.

Sécurité .NET Framework

Voir aussi

Référence

PropertyValue Classe

Microsoft.Windows.Design.PropertyEditing, espace de noms

PropertyEntry

PropertyValueEditor

Autres ressources

Extensibilité du Concepteur WPF

Architecture d'édition de propriété