共用方式為


RemoteException Class

Definition

Exception used to wrap the error coming from remote instance of PowerShell.

public ref class RemoteException : System::Management::Automation::RuntimeException
[System.Serializable]
public class RemoteException : System.Management.Automation.RuntimeException
public class RemoteException : System.Management.Automation.RuntimeException
[<System.Serializable>]
type RemoteException = class
    inherit RuntimeException
type RemoteException = class
    inherit RuntimeException
Public Class RemoteException
Inherits RuntimeException
Inheritance
Attributes

Remarks

This remote instance of PowerShell can be in a separate process, appdomain or machine.

Constructors

RemoteException()

Initializes a new instance of RemoteException.

RemoteException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the RemoteException class with serialized data.

RemoteException(String, Exception)

Initializes a new instance of the RemoteException class with a specified error message and a reference to the inner exception that is the cause of this exception.

RemoteException(String)

Initializes a new instance of RemoteException with a specified error message.

Properties

ErrorRecord

ErrorRecord associated with the exception.

SerializedRemoteException

Original Serialized Exception from remote PowerShell.

SerializedRemoteInvocationInfo

InvocationInfo, if any, associated with the SerializedRemoteException.

WasThrownFromThrowStatement (Inherited from RuntimeException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

(Inherited from RuntimeException)

Applies to