Partager via


UnmanagedPSEntry.Start Method

Definition

Overloads

Start(String, String[])

Starts managed MSH

Start(String[], Int32)

Starts PowerShell.

Start(String, String[], Int32)
Obsolete.

Starts PowerShell.

Start(String, String[])

Starts managed MSH

public:
 int Start(System::String ^ consoleFilePath, cli::array <System::String ^> ^ args);
public:
 int Start(Platform::String ^ consoleFilePath, Platform::Array <Platform::String ^> ^ args);
int Start(std::wstring const & consoleFilePath, std::Array <std::wstring const &> const & args);
public int Start (string consoleFilePath, string[] args);
member this.Start : string * string[] -> int
Public Function Start (consoleFilePath As String, args As String()) As Integer

Parameters

consoleFilePath
String

Console file used to create a runspace configuration to start MSH

args
String[]

Command line arguments to the managed MSH

Returns

Applies to

Start(String[], Int32)

Starts PowerShell.

public static int Start (string[] args, int argc);
static member Start : string[] * int -> int
Public Shared Function Start (args As String(), argc As Integer) As Integer

Parameters

args
String[]

Command line arguments to PowerShell

argc
Int32

Length of the passed in argument array.

Returns

Applies to

Start(String, String[], Int32)

Caution

Callers should now use UnmanagedPSEntry.Start(string[], int)

Starts PowerShell.

public static int Start (string consoleFilePath, string[] args, int argc);
[System.Obsolete("Callers should now use UnmanagedPSEntry.Start(string[], int)", true)]
public static int Start (string consoleFilePath, string[] args, int argc);
static member Start : string * string[] * int -> int
[<System.Obsolete("Callers should now use UnmanagedPSEntry.Start(string[], int)", true)>]
static member Start : string * string[] * int -> int
Public Shared Function Start (consoleFilePath As String, args As String(), argc As Integer) As Integer

Parameters

consoleFilePath
String

Deprecated: Console file used to create a runspace configuration to start PowerShell

args
String[]

Command line arguments to the PowerShell

argc
Int32

Length of the passed in argument array.

Returns

Attributes

Applies to