Runspace.RunspaceIsRemote Property

Definition

Return whether the Runspace is Remote We can determine this by whether the runspace is an implementation of LocalRunspace or infer it from whether the ConnectionInfo property is null If it happens to be an instance of a LocalRunspace, but has a non-null ConnectionInfo we declare it to be remote.

public:
 property bool RunspaceIsRemote { bool get(); };
public:
 property bool RunspaceIsRemote { bool get(); };
public bool RunspaceIsRemote { get; }
member this.RunspaceIsRemote : bool
Public ReadOnly Property RunspaceIsRemote As Boolean

Property Value

Applies to