다음을 통해 공유


SettingValueExceptionEventArgs Class

Definition

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

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

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

Gets the exception that triggered the associated event.

ShouldThrow

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

Applies to