C# 클래스 NuGetConsole.Host.PowerShell.HostUtilities

Implements utility methods that might be used by Hosts.
파일 보기 프로젝트 열기: monoman/NugetCracker 1 사용 예제들

공개 메소드들

메소드 설명
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[]