共用方式為


Runspace.CreateDisconnectedPowerShell Method

Definition

Creates a PowerShell object in the disconnected state for the currently disconnected remote running command associated with this runspace.

public:
 abstract System::Management::Automation::PowerShell ^ CreateDisconnectedPowerShell();
public abstract System.Management.Automation.PowerShell CreateDisconnectedPowerShell ();
abstract member CreateDisconnectedPowerShell : unit -> System.Management.Automation.PowerShell
Public MustOverride Function CreateDisconnectedPowerShell () As PowerShell

Returns

PowerShell object in disconnected state.

Applies to