CommandNotFoundException CommandNotFoundException CommandNotFoundException Class

Definition

This exception is thrown when a command cannot be found.

public class CommandNotFoundException : System.Management.Automation.RuntimeException
type CommandNotFoundException = class
    inherit RuntimeException
Public Class CommandNotFoundException
Inherits RuntimeException
Inheritance
CommandNotFoundExceptionCommandNotFoundExceptionCommandNotFoundException

Constructors

CommandNotFoundException() CommandNotFoundException() CommandNotFoundException()

Constructs a CommandNotFoundException.

CommandNotFoundException(SerializationInfo, StreamingContext) CommandNotFoundException(SerializationInfo, StreamingContext) CommandNotFoundException(SerializationInfo, StreamingContext)

Serialization constructor for class CommandNotFoundException

CommandNotFoundException(String) CommandNotFoundException(String) CommandNotFoundException(String)

Constructs a CommandNotFoundException

CommandNotFoundException(String, Exception) CommandNotFoundException(String, Exception) CommandNotFoundException(String, Exception)

Constructs a CommandNotFoundException

Properties

CommandName CommandName CommandName

Gets the name of the command that could not be found.

ErrorRecord ErrorRecord ErrorRecord

Gets the ErrorRecord information for this exception.

StackTrace StackTrace StackTrace Inherited from RuntimeException
WasThrownFromThrowStatement WasThrownFromThrowStatement WasThrownFromThrowStatement Inherited from RuntimeException

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Serializes the CommandNotFoundException.

Applies to