A string containing the user name for the account associated with the current credentials.
Type | Reason |
---|---|
System.Security.Permissions.EnvironmentPermission | Requires read access to the environment variable that contains the user name. See System.Security.Permissions.EnvironmentPermissionAccess.Read. |