Updated: April 27, 2016
Applies To: Windows PowerShell
The exception that is thrown by the underlying setter of a referenced member when it recognizes that an error has occurred while setting the value of an ETS member (property, method, or parameterized property).
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Initializes a new instance of theclass that is empty.
Initializes a new instance of theclass that contains information read from the provided serialization information.
Initializes a new instance of theclass that contains an exception message.
Initializes a new instance of theclass that contains an exception message and the inner exception that caused this exception to be thrown.
Gets the error record associated with the exception.(Inherited from RuntimeException.)
Gets or sets a value that indicates whether the exception was thrown from a throw statement.(Inherited from RuntimeException.)
Script developers can trap this exception 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].
This exception is thrown when the underlying setter recognizes that the error has occurred. When Windows PowerShell recognizes that the error has occurred, it throws a SetValueException exception.
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.