CmdletInvocationException Constructor

CmdletInvocationException Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new CmdletInvocationException 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_pubmethodCmdletInvocationException()

Creates a new CmdletInvocationException object that is empty.

System_CAPS_protmethodCmdletInvocationException(SerializationInfo, StreamingContext)

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

System_CAPS_pubmethodCmdletInvocationException(String)

Creates a new CmdletInvocationException object that contains an exception message.

System_CAPS_pubmethodCmdletInvocationException(String, Exception)

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

Return to top

Community Additions

ADD
Show:
© 2016 Microsoft