NativeCommandExitException Class

Definition

This exception is used by the NativeCommandProcessor to indicate an error when a native command returns a non-zero exit code.

C#
[System.Serializable]
public sealed class NativeCommandExitException : System.Management.Automation.RuntimeException
C#
[System.Runtime.CompilerServices.Nullable(0)]
[System.Runtime.CompilerServices.NullableContext(2)]
public sealed class NativeCommandExitException : System.Management.Automation.RuntimeException
Inheritance
NativeCommandExitException
Attributes

Properties

ErrorRecord

Additional information about the error.

(Inherited from RuntimeException)
ExitCode

Gets the exit code returned by the native command.

Path

Gets the path of the native command.

ProcessId

Gets the native command's process ID.

WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

Applies to

Proizvod Verzije
PowerShell SDK 7.3.0, 7.4.0