Freigeben über


SettingValueExceptionEventArgs.ShouldThrow Property

Definition

Gets and sets a Boolean indicating if the SetValue method of PSObjectPropertyDescriptor should throw the exception associated with this event.

public:
 property bool ShouldThrow { bool get(); void set(bool value); };
public:
 property bool ShouldThrow { bool get(); void set(bool value); };
public bool ShouldThrow { get; set; }
member this.ShouldThrow : bool with get, set
Public Property ShouldThrow As Boolean

Property Value

Remarks

The default value is true, indicating that the Exception associated with this event will be thrown.

Applies to