PSObjectTypeDescriptor.SettingValueException Event

Definition

Occurs when there was an exception setting the value of a property.

C++
public:
 event EventHandler<System::Management::Automation::SettingValueExceptionEventArgs ^> ^ SettingValueException;

Event Type

Remarks

The ShouldThrow property of the SettingValueExceptionEventArgs allows subscribers to prevent the exception from being thrown.

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0