Runspace.RunspaceIsRemote Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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