Freigeben über


RunspaceConfiguration.Create Method

Definition

Overloads

Create()

Create one single shell runspace configuration object for a msh version.

Create(String)

Create an instance of RunspaceConfiguration type implemented from an assembly.

Create(String, PSConsoleLoadException)

Create one single shell runspace configuration object from console file

Create()

Create one single shell runspace configuration object for a msh version.

public:
 static System::Management::Automation::Runspaces::RunspaceConfiguration ^ Create();
public static System.Management.Automation.Runspaces.RunspaceConfiguration Create ();
static member Create : unit -> System.Management.Automation.Runspaces.RunspaceConfiguration
Public Shared Function Create () As RunspaceConfiguration

Returns

Applies to

Create(String)

Create an instance of RunspaceConfiguration type implemented from an assembly.

public:
 static System::Management::Automation::Runspaces::RunspaceConfiguration ^ Create(System::String ^ assemblyName);
public static System.Management.Automation.Runspaces.RunspaceConfiguration Create (string assemblyName);
static member Create : string -> System.Management.Automation.Runspaces.RunspaceConfiguration
Public Shared Function Create (assemblyName As String) As RunspaceConfiguration

Parameters

assemblyName
String

Assembly name from which to find runspace configuration implementation

Returns

Runspace configuration instance created

Exceptions

Exception thrown when assemblyName is null or empty.

Applies to

Create(String, PSConsoleLoadException)

Create one single shell runspace configuration object from console file

public:
 static System::Management::Automation::Runspaces::RunspaceConfiguration ^ Create(System::String ^ consoleFilePath, [Runtime::InteropServices::Out] System::Management::Automation::Runspaces::PSConsoleLoadException ^ % warnings);
public static System.Management.Automation.Runspaces.RunspaceConfiguration Create (string consoleFilePath, out System.Management.Automation.Runspaces.PSConsoleLoadException warnings);
static member Create : string * PSConsoleLoadException -> System.Management.Automation.Runspaces.RunspaceConfiguration
Public Shared Function Create (consoleFilePath As String, ByRef warnings As PSConsoleLoadException) As RunspaceConfiguration

Parameters

consoleFilePath
String

Returns

Applies to