CmdletInvocationException Class  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates that a cmdlet hit a terminating error.
public ref class CmdletInvocationException : System::Management::Automation::RuntimeException
	[System.Serializable]
public class CmdletInvocationException : System.Management.Automation.RuntimeException
	public class CmdletInvocationException : System.Management.Automation.RuntimeException
	[<System.Serializable>]
type CmdletInvocationException = class
    inherit RuntimeException
	type CmdletInvocationException = class
    inherit RuntimeException
	Public Class CmdletInvocationException
Inherits RuntimeException
		- Inheritance
 
- Derived
 
- Attributes
 
Remarks
InnerException is the error which the cmdlet hit.
Constructors
| CmdletInvocationException() | 
		 Instantiates a new instance of the CmdletInvocationException class.  | 
        	
| CmdletInvocationException(SerializationInfo, StreamingContext) | 
			 
				Obsolete.
			 
		Initializes a new instance of the CmdletInvocationException class using data serialized via ISerializable  | 
        	
| CmdletInvocationException(String, Exception) | 
		 Instantiates a new instance of the CmdletInvocationException class.  | 
        	
| CmdletInvocationException(String) | 
		 Instantiates a new instance of the CmdletInvocationException class.  | 
        	
Properties
| ErrorRecord | 
		 The error reported by the cmdlet.  | 
        	
| WasThrownFromThrowStatement | (Inherited from RuntimeException) | 
Methods
| GetObjectData(SerializationInfo, StreamingContext) | 
		 Serializer for ISerializable  |