Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SetValueException Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new SetValueException object. The variants of this constructor can be used to create an empty object, an object that contains an exception message, and more.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

NameDescription
System_CAPS_pubmethodSetValueException()

Creates a new SetValueException object that is empty.

System_CAPS_protmethodSetValueException(SerializationInfo, StreamingContext)

Creates a new SetValueException object that contains information that is read from the provided serialization information.

System_CAPS_pubmethodSetValueException(String)

Creates a new SetValueException object that contains an exception message.

System_CAPS_pubmethodSetValueException(String, Exception)

Creates a new SetValueException object that contains an exception message and the inner exception that caused this exception to be thrown.

Script developers can trap this exception by using the Trap statement (defined by the Windows PowerShell language) in their scripts. For more information about other exceptions thrown by ETS, see ETS Errors and Exceptions [ps].

Return to top

Community Additions

Show: