src/System.Management.Automation/engine/hostifaces/HostUtilities.cs
/// <summary>
/// Gets the object that serves as a value to $profile and the paths on it.
/// </summary>
/// <param name="shellId">The id identifying the host or shell used in profile file names.</param>
/// <param name="useTestProfile">Used from test not to overwrite the profile file names from development boxes.</param>
/// <param name="allUsersAllHosts">Path for all users and all hosts.</param>
/// <param name="currentUserAllHosts">Path for current user and all hosts.</param>
/// <param name="allUsersCurrentHost">Path for all users current host.</param>
/// <param name="currentUserCurrentHost">Path for current user and current host.</param>
/// <param name="dollarProfile">The object that serves as a value to $profile.</param>
/// <returns></returns>
Gets the object that serves as a value to $profile and the paths on it.
Gets the object that serves as a value to $profile and the paths on it .
internal static void GetProfileObjectData(string shellId, bool useTestProfile, out string allUsersAllHosts, out string allUsersCurrentHost, out string currentUserAllHosts, out string currentUserCurrentHost, out PSObject dollarProfile)
        {
            allUsersAllHosts = HostUtilities.GetFullProfileFileName(null, false, useTestProfile);
            allUsersCurrentHost = HostUtilities.GetFullProfileFileName(shellId, false, useTestProfile);
            currentUserAllHosts = HostUtilities.GetFullProfileFileName(null, true, useTestProfile);
            currentUserCurrentHost = HostUtilities.GetFullProfileFileName(shellId, true, useTestProfile);
            dollarProfile = HostUtilities.GetDollarProfile(allUsersAllHosts, allUsersCurrentHost, currentUserAllHosts, currentUserCurrentHost);
        }
internal static void GetProfileObjectData ( string shellId , bool useTestProfile , out string allUsersAllHosts , out string allUsersCurrentHost , out string currentUserAllHosts , out string currentUserCurrentHost , out PSObject dollarProfile ) { allUsersAllHosts = HostUtilities . GetFullProfileFileName ( null , false , useTestProfile ) ; allUsersCurrentHost = HostUtilities . GetFullProfileFileName ( shellId , false , useTestProfile ) ; currentUserAllHosts = HostUtilities . GetFullProfileFileName ( null , true , useTestProfile ) ; currentUserCurrentHost = HostUtilities . GetFullProfileFileName ( shellId , true , useTestProfile ) ; dollarProfile = HostUtilities . GetDollarProfile ( allUsersAllHosts , allUsersCurrentHost , currentUserAllHosts , currentUserCurrentHost ) ; }
Gets the object that serves as a value to $profile and the paths on it.
Gets the object that serves as a value to $profile and the paths on it .
None
shellId
string
The id identifying the host or shell used in profile file names.
The id identifying the host or shell used in profile file names .
useTestProfile
bool
Used from test not to overwrite the profile file names from development boxes.
Used from test not to overwrite the profile file names from development boxes .
string
out
PSObject
out
allUsersAllHosts
Path for all users and all hosts.
Path for all users and all hosts .
currentUserAllHosts
Path for current user and all hosts.
Path for current user and all hosts .
allUsersCurrentHost
Path for all users current host.
Path for all users current host .
currentUserCurrentHost
Path for current user and current host.
Path for current user and current host .
dollarProfile
The object that serves as a value to $profile.
The object that serves as a value to $profile .