SettingValueExceptionEventArgs SettingValueExceptionEventArgs SettingValueExceptionEventArgs Class

Definition

Serves as the arguments for events triggered by exceptions in the SetValue method of PSObjectPropertyDescriptor

public class SettingValueExceptionEventArgs : EventArgs
type SettingValueExceptionEventArgs = class
    inherit EventArgs
Public Class SettingValueExceptionEventArgs
Inherits EventArgs
Inheritance
SettingValueExceptionEventArgsSettingValueExceptionEventArgsSettingValueExceptionEventArgs

Remarks

The sender of this event is an object of type PSObjectPropertyDescriptor. It is permitted to subclass SettingValueExceptionEventArgs but there is no established scenario for doing this, nor has it been tested.

Properties

Exception Exception Exception

Gets the exception that triggered the associated event.

ShouldThrow ShouldThrow ShouldThrow

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

Applies to