Bagikan melalui


PropertyValue.CatchExceptions Property

Gets a value indicating how to handle exceptions that occur during the get and set methods of the Value and StringValue properties.

Namespace:  Microsoft.Windows.Design.PropertyEditing
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
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

Property Value

Type: System.Boolean
true if the exception should be caught; false if the exception should be propagated to the caller.

Remarks

If CatchExceptions is true, the get and set methods of the Value and StringValue properties call OnPropertyValueException which raises the PropertyValueException handler.

By default, this property is true if there is at least one subscriber to the PropertyValueException event.

.NET Framework Security

See Also

Reference

PropertyValue Class

Microsoft.Windows.Design.PropertyEditing Namespace

PropertyEntry

PropertyValueEditor

Other Resources

WPF Designer Extensibility

Property Editing Architecture