Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RunspaceConfiguration Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Defines the configurable information for a single runspace. Runspace configuration information defines the behavior of the Windows PowerShell shell at run time.

Namespace:   System.Management.Automation.Runspaces
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.Runspaces.RunspaceConfiguration

Public MustInherit Class RunspaceConfiguration

NameDescription
System_CAPS_protmethodRunspaceConfiguration()

Initializes a new instance of the RunspaceConfiguration class.

NameDescription
System_CAPS_pubpropertyAssemblies

Gets a collection that can then be used to add assemblies to the runspace configuration.

System_CAPS_pubpropertyAuthorizationManager

Gets the authorization manager of the runspace.

System_CAPS_pubpropertyCmdlets

Gets a collection that can be used to add and remove cmdlets to the runspace configuration.

System_CAPS_pubpropertyFormats

Gets a collection that can be used to add format files to the runspace configuration.

System_CAPS_pubpropertyInitializationScripts

Gets a collection that can be used to add initialization scripts to the runspace configuration.

System_CAPS_pubpropertyProviders

Gets a collection that can be used to add providers to the runspace configuration.

System_CAPS_pubpropertyScripts

Gets a collection that can be used to add scripts to the runspace configuration.

System_CAPS_pubpropertyShellId

Gets the shell identifier for the runspace.

System_CAPS_pubpropertyTypes

Gets a collection that can be used to add type files to the runspace configuration.

NameDescription
System_CAPS_pubmethodAddPSSnapIn(String, PSSnapInException)

Adds information about a Windows PowerShell snap-in to the runspace configuration information.

System_CAPS_pubmethodSystem_CAPS_staticCreate()

Creates a RunspaceConfiguration object based on the current configuration information.

System_CAPS_pubmethodSystem_CAPS_staticCreate(String)

Creates a RunspaceConfiguration object that includes configuration information supplied by a specified assembly.

System_CAPS_pubmethodSystem_CAPS_staticCreate(String, PSConsoleLoadException)

Creates a RunspaceConfiguration object with configuration information supplied by a console file.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemovePSSnapIn(String, PSSnapInException)

Removes information about a Windows PowerShell snap-in from the runspace configuration information.

System_CAPS_pubmethodToString()

(Inherited from Object.)

Runspace configuration information includes the assemblies, commands, format and type files, providers, and scripts that are available within the runspace.

Developers might want to derive from this class when writing their own host application. This will allow the host application to control the behavior of the Windows PowerShell shell through a customized runspace configuration.

A RunspaceConfiguration object cannot be used with runspace pools.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: