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