Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SetValueInvocationException Class

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).

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

Dim instance As SetValueInvocationException

<SerializableAttribute> _
Public Class SetValueInvocationException
	Inherits SetValueException
/** @attribute SerializableAttribute() */ 
public class SetValueInvocationException extends SetValueException
public class SetValueInvocationException extends SetValueException

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.

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.


Target Platforms

© 2015 Microsoft