C# Класс NuGetConsole.Host.PowerShell.HostUtilities

Implements utility methods that might be used by Hosts.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetProfileCommands ( string shellId ) : System.Management.Automation.PSCommand[]

Gets an array of commands that can be run sequentially to set $profile and run the profile commands.

Приватные методы

Метод Описание
GetAllUsersFolderPath ( ) : string

Used internally in GetFullProfileFileName to get the base path for all users profiles.

GetApplicationBase ( ) : string
GetDollarProfile ( string allUsersAllHosts, string allUsersCurrentHost, string currentUserAllHosts, string currentUserCurrentHost ) : System.Management.Automation.PSObject

Gets a PSObject whose base object is currentUserCurrentHost and with notes for the other 4 parameters.

GetFullProfileFileName ( string shellId, bool forCurrentUser, bool useTestProfile ) : string

Used to get all profile file names for the current or all hosts and for the current or all users.

GetProfileCommands ( string shellId, bool useTestProfile ) : System.Management.Automation.PSCommand[]

Gets an array of commands that can be run sequentially to set $profile and run the profile commands.

Описание методов

GetProfileCommands() публичный статический Метод

Gets an array of commands that can be run sequentially to set $profile and run the profile commands.
public static GetProfileCommands ( string shellId ) : System.Management.Automation.PSCommand[]
shellId string The id identifying the host or shell used in profile file names.
Результат System.Management.Automation.PSCommand[]