Lire en anglais

Partager via


CommandNotFoundException Class

Definition

This exception is thrown when a command cannot be found.

C++
public ref class CommandNotFoundException : System::Management::Automation::RuntimeException
Inheritance
CommandNotFoundException
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

Applies to

Produit Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0