RemoteException Class

The exception that is thrown for an error that comes from a remote instance of Windows PowerShell.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As RemoteException

[SerializableAttribute] 
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2240:ImplementISerializableCorrectly")] 
public ref class RemoteException : public RuntimeException
/** @attribute SerializableAttribute() */ 
/** @attribute SuppressMessageAttribute("Microsoft.Usage", "CA2240:ImplementISerializableCorrectly") */ 
public class RemoteException extends RuntimeException
SerializableAttribute 
SuppressMessageAttribute("Microsoft.Usage", "CA2240:ImplementISerializableCorrectly") 
public class RemoteException extends RuntimeException

The remote instance of Windows PowerShell can be a separate application domain, process, or computer. This remote entity can be PS.exe (the default host application) or a custom host application.

The type of the original exception might not be available in the local application domain, process, or computer, so the original exception is available only as a serialized PSObject object.


System.Object
   System.Exception
     System.SystemException
       System.Management.Automation.RuntimeException
        System.Management.Automation.RemoteException

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft