GettingValueExceptionEventArgs Class

Definition

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

public class GettingValueExceptionEventArgs : EventArgs
Inheritance
GettingValueExceptionEventArgs

Remarks

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

Properties

Exception

Gets the Exception that triggered the associated event.

ShouldThrow

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

ValueReplacement

Gets and sets the value that will serve as a replacement to the return of the GetValue method of PSObjectPropertyDescriptor. If this property is not set to a value other than null then the exception associated with this event is thrown.