7 references to UserName
System.Diagnostics.Process (7)
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (2)
123bool setCredentials = !string.IsNullOrEmpty(startInfo.UserName); 153bool setCredentials = !string.IsNullOrEmpty(startInfo.UserName);
System\Diagnostics\ProcessUtils.Unix.cs (5)
112Debug.Assert(!string.IsNullOrEmpty(startInfo.UserName)); 114(uint? userId, uint? groupId) = GetUserAndGroupIds(startInfo.UserName); 119throw new Win32Exception(SR.Format(SR.UserDoesNotExist, startInfo.UserName)); 122uint[]? groups = Interop.Sys.GetGroupList(startInfo.UserName, groupId!.Value); 125throw new Win32Exception(SR.Format(SR.UserGroupsCannotBeDetermined, startInfo.UserName));