Share via


IVMRCClientControl::UserName property

The UserName property contains the network user account name to use for validating credentials with the VMRC server.

This property is write-only.

Syntax

HRESULT put_UserName(
  [in] BSTR userName
);

VB
VMRCClientControl.UserName( _
  ByVal userName _
)

Property value

Sets the network user account to use for validating credentials with the VMRC server.

This property value is write-only.

Error codes

Name Meaning
S_OK
The operation was successful.
S_FALSE
This property cannot be changed at this time.
E_INVALIDARG
The userName parameter was NULL.

Remarks

This property is used in conjunction with the IVMRCClientControl::UserDomain and IVMRCClientControl::UserPassword properties to set the credentials used when validating credentials with the VMRC server. If all three of these properties are set to a zero-length string, the current default user credentials are used for authentication.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VMRCClientControl.h
Library
VMRCClientControl.lib

See also

IVMRCClientControl