Runspace Methods

(see also Protected Methods)
 NameDescription
public methodClearBaseTransactionClears the base transaction that is used by all transactions that are performed on this runspace. This method is introduced in Windows PowerShell 2.0.
public methodCloseCloses the runspace and makes it unavailable for use.
public methodCloseAsyncCloses the runspace asynchronously, and makes it unavailable for use. This method returns control immediately, and then, in a separate thread, closes the runspace and stops all its associated pipelines.
public methodConnectSynchronously connects the remote runspace to the remote server and sets the runspace state to Opened. If the object is a local runspace, a not supported exception is thrown.
public methodConnectAsyncAsynchronously connects the remote runspace to the remote server and sets the runspace state to Opened. If the object is a local runspace, a not supported exception is thrown.
public methodCreateDisconnectedPipelineCreates a Pipeline object in the Disconnected state for the currently disconnected remote running command associated with this runspace.
public methodCreateDisconnectedPowerShellCreates a PowerShell object in the Disconnected state for the currently disconnected remote running command associated with this runspace.
public methodCreateNestedPipelineOverloaded. Creates a pipeline for the runspace while an existing pipeline is executing. The variants of this method can be used to create a nested pipeline by itself or to create a nested pipeline with a command string that contains commands (such as cmdlets and scripts) that can be executed by the pipeline.
public methodCreatePipelineOverloaded. Creates a pipeline for the runspace. The variants of this method can be used to create a pipeline by itself or to create a pipeline with a command string that contains commands (such as cmdlets and scripts) that can be executed by the pipeline.
public methodDisconnectSynchronously disconnects the remote runspace from the remote server and sets the runspace state to Disconnected. If the object is a local runspace, a not supported exception is thrown.
public methodDisconnectAsyncAsynchronously disconnects the remote runspace from the remote server and sets the runspace state to Disconnected. If the object is a local runspace, a not supported exception is thrown.
public methodDisposeOverloaded. Releases the resources used by the Runspace object. These methods implement the Dispose pattern used to release managed and unmanaged resources.
public methodEquals  (Inherited from Object)
public methodGetApplicationPrivateDataRetrieves private application data from the server that can be used by the runspace. This method is introduced in Windows PowerShell 2.0.
public methodGetCapabilitiesRetrieves the capabilities of this runspace.
public methodGetHashCode  (Inherited from Object)
public methodstaticGetRunspacesOverloaded. Queries the server for disconnected runspaces and creates an array of runspace objects associated with each disconnected runspace on the server.
public methodGetType  (Inherited from Object)
public methodOpenOpens the runspace synchronously, creating a Windows PowerShell execution environment.
public methodOpenAsyncOpens the runspace asynchronously, creating a Windows PowerShell execution environment. This method returns control immediately, and then, in a separate thread, opens the runspace.
public methodResetRunspaceStateResets the variable table for the runspace to the default state.
public methodSetBaseTransactionOverloaded. Sets the base transaction that is used by any transactions created on this runspace. The variants of this method can specify the base transaction with or without specifying the error the error condition that will cause the transaction to be automatically rolled back. This method is introduced in Windows PowerShell 2.0.
public methodToString  (Inherited from Object)

  Name Description
protected method Dispose Overloaded. Releases the resources used by the Runspace object. These methods implement the Dispose pattern used to release managed and unmanaged resources.
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)
protected method OnAvailabilityChanged Raises the AvailabilityChanged event when the state of the currently invoked pipeline changes. This method is introduced in Windows PowerShell 2.0.
protected method UpdateRunspaceAvailability Raises the AvailabilityChanged event when the state of the currently invoked pipeline changes to the specified state. This method is introduced in Windows PowerShell 2.0.

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