Sdílet prostřednictvím


NativeCommandExitException Class

Definition

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

[System.Serializable]
public sealed class NativeCommandExitException : System.Management.Automation.RuntimeException
[System.Runtime.CompilerServices.Nullable(0)]
[System.Runtime.CompilerServices.NullableContext(2)]
public sealed class NativeCommandExitException : System.Management.Automation.RuntimeException
[<System.Serializable>]
type NativeCommandExitException = class
    inherit RuntimeException
[<System.Runtime.CompilerServices.Nullable(0)>]
[<System.Runtime.CompilerServices.NullableContext(2)>]
type NativeCommandExitException = class
    inherit RuntimeException
Public NotInheritable Class NativeCommandExitException
Inherits 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

GetObjectData(SerializationInfo, StreamingContext)

Serializes the exception data.

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to