Gets or sets the user name to be used for the connection operation.
Assembly: System.Management (in System.Management.dll)
If the user name is from a domain other than the current domain, the string may contain the domain name and user name, separated by a backslash: string 'username' = "EnterDomainHere\\EnterUsernameHere". The strUser parameter cannot be an empty string.
null if the connection will use the currently logged-on user; otherwise, a string representing the user name. The default value is null.
The following example connects to a remote computer and displays information about the operating system on the remote computer. A ConnectionOptions is created to connect to the remote computer with the desired connection options.
Available since 1.1