IHostSupportsInteractiveSession IHostSupportsInteractiveSession IHostSupportsInteractiveSession Interface

Definition

This interface needs to be implemented by PSHost objects that want to support the PushRunspace and PopRunspace functionality.

public interface IHostSupportsInteractiveSession
type IHostSupportsInteractiveSession = interface
Public Interface IHostSupportsInteractiveSession

Properties

IsRunspacePushed IsRunspacePushed IsRunspacePushed

True if a runspace is pushed; false otherwise.

Runspace Runspace Runspace

Returns the current runspace associated with this host.

Methods

PopRunspace() PopRunspace() PopRunspace()

Called by the engine to notify the host that a runspace pop has been requested.

PushRunspace(Runspace) PushRunspace(Runspace) PushRunspace(Runspace)

Called by the engine to notify the host that a runspace push has been requested.

Applies to