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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.PropertyEditing Namespace