CommandNotFoundException 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.
This exception is thrown when a command cannot be found.
public ref class CommandNotFoundException : System::Management::Automation::RuntimeException
[System.Serializable]
public class CommandNotFoundException : System.Management.Automation.RuntimeException
public class CommandNotFoundException : System.Management.Automation.RuntimeException
[<System.Serializable>]
type CommandNotFoundException = class
inherit RuntimeException
type CommandNotFoundException = class
inherit RuntimeException
Public Class CommandNotFoundException
Inherits RuntimeException
- Inheritance
- Attributes
Constructors
CommandNotFoundException() |
Constructs a CommandNotFoundException. |
CommandNotFoundException(SerializationInfo, StreamingContext) |
Obsolete.
Serialization constructor for class CommandNotFoundException. |
CommandNotFoundException(String, Exception) |
Constructs a CommandNotFoundException. |
CommandNotFoundException(String) |
Constructs a CommandNotFoundException. |
Properties
CommandName |
Gets the name of the command that could not be found. |
ErrorRecord |
Gets the ErrorRecord information for this exception. |
WasThrownFromThrowStatement | (Inherited from RuntimeException) |
Methods
GetObjectData(SerializationInfo, StreamingContext) |
Serializes the CommandNotFoundException. |
GetObjectData(SerializationInfo, StreamingContext) |
Serializer for ISerializable (Inherited from RuntimeException) |