9 references to UserName
System.Diagnostics.Process (9)
Microsoft\Win32\SafeHandles\SafeProcessHandle.Unix.cs (2)
195
bool setCredentials = !string.IsNullOrEmpty(startInfo.
UserName
);
227
bool 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.
446
if (InheritedHandles is not null && (UseShellExecute || !string.IsNullOrEmpty(
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
));