9 references to UserName
System.Diagnostics.Process (9)
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (2)
195bool setCredentials = !string.IsNullOrEmpty(startInfo.UserName); 227bool setCredentials = !string.IsNullOrEmpty(startInfo.UserName);
System\Diagnostics\ProcessStartInfo.cs (2)
248/// This API can't be used together with <see cref="UseShellExecute"/> set to <see langword="true"/> or when specifying a user name via the <see cref="UserName"/> property. 446if (InheritedHandles is not null && (UseShellExecute || !string.IsNullOrEmpty(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));