HaltCommandException Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new HaltCommandException object. The variants of this constructor can 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_pubmethodHaltCommandException()

Creates a new HaltCommandException object that is empty.

System_CAPS_protmethodHaltCommandException(SerializationInfo, StreamingContext)

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

System_CAPS_pubmethodHaltCommandException(String)

Creates a new HaltCommandException object that contains an exception message.

System_CAPS_pubmethodHaltCommandException(String, Exception)

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

Return to top

Community Additions

ADD
Show: