Sdílet prostřednictvím


CommandNotFoundException Class

Definition

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
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

GetObjectData(SerializationInfo, StreamingContext)

Serializes the CommandNotFoundException.

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to