src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleShell.cs
/// <summary>Entry point in to ConsoleShell. Used to create a custom Powershell console application.</summary>
/// <param name="initialSessionState">InitialSessionState to be used by the ConsoleHost.</param>
/// <param name="bannerText">Banner text to be displayed by ConsoleHost.</param>
/// <param name="helpText">Help text for the shell.</param>
/// <param name="args">Commandline parameters specified by user.</param>
/// <returns>An integer value which should be used as exit code for the process.</returns>
Entry point in to ConsoleShell. Used to create a custom Powershell console application.
Entry point in to ConsoleShell . Used to create a custom Powershell console application .
public static int Start(InitialSessionState initialSessionState, string? bannerText, string? helpText, string[] args)
        {
            return StartImpl(
                initialSessionState,
                bannerText,
                helpText,
                args,
                issProvided: true);
        }
public static int Start ( InitialSessionState initialSessionState , string ? bannerText , string ? helpText , string [ ] args ) { return StartImpl ( initialSessionState , bannerText , helpText , args , issProvided : true ) ; }
Entry point in to ConsoleShell.
Entry point in to ConsoleShell .
An integer value which should be used as exit code for the process.
An integer value which should be used as exit code for the process .
initialSessionState
InitialSessionState
InitialSessionState to be used by the ConsoleHost.
InitialSessionState to be used by the ConsoleHost .
bannerText
string?
Banner text to be displayed by ConsoleHost.
Banner text to be displayed by ConsoleHost .
helpText
string?
Help text for the shell.
Help text for the shell .
args
string[]
Commandline parameters specified by user.
Commandline parameters specified by user .