Partager via


IHostSupportsInteractiveSession Interface

Definition

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

public interface class IHostSupportsInteractiveSession
public interface IHostSupportsInteractiveSession
[System.Runtime.CompilerServices.NullableContext(2)]
public interface IHostSupportsInteractiveSession
type IHostSupportsInteractiveSession = interface
[<System.Runtime.CompilerServices.NullableContext(2)>]
type IHostSupportsInteractiveSession = interface
Public Interface IHostSupportsInteractiveSession
Attributes

Properties

IsRunspacePushed

True if a runspace is pushed; false otherwise.

Runspace

Returns the current runspace associated with this host.

Methods

PopRunspace()

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

PushRunspace(Runspace)

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

Applies to