Proprietà PropertyValue.CatchExceptions
Ottiene un valore che indica come gestire le eccezioni che si verificano durante i metodi get e set delle proprietà Value e StringValue.
Spazio dei nomi: Microsoft.Windows.Design.PropertyEditing
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Sintassi
'Dichiarazione
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
Valore proprietà
Tipo: System.Boolean
true se l'eccezione deve essere intercettata; false se l'eccezione deve essere propagata al chiamante.
Note
Se l'oggetto CatchExceptions è true, i metodi get e set delle proprietà Value e StringValue chiamano l'oggetto OnPropertyValueException che genera il gestore dell'oggetto PropertyValueException.
Per impostazione predefinita, questa proprietà è true se è presente almeno un sottoscrittore dell'evento PropertyValueException.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.
Vedere anche
Riferimenti
Spazio dei nomi Microsoft.Windows.Design.PropertyEditing