9 references to UserName
System.Diagnostics.Process (9)
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (2)
224
bool setCredentials = !string.IsNullOrEmpty(startInfo.
UserName
);
362
bool setCredentials = !string.IsNullOrEmpty(startInfo.
UserName
);
System\Diagnostics\ProcessStartInfo.cs (2)
273
/// 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.
488
if (InheritedHandles is not null && (UseShellExecute || !string.IsNullOrEmpty(
UserName
)))
System\Diagnostics\ProcessUtils.Unix.cs (5)
54
Debug.Assert(!string.IsNullOrEmpty(startInfo.
UserName
));
56
(uint? userId, uint? groupId) = GetUserAndGroupIds(startInfo.
UserName
);
61
throw new Win32Exception(SR.Format(SR.UserDoesNotExist, startInfo.
UserName
));
64
uint[]? groups = Interop.Sys.GetGroupList(startInfo.
UserName
, groupId!.Value);
67
throw new Win32Exception(SR.Format(SR.UserGroupsCannotBeDetermined, startInfo.
UserName
));