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