Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method sets the value of the Domain property, which specifies the domain to which the current user logs on.
HRESULT put_Domain(BSTR domainProperty);
Parameters
- domainProperty
[in] The value the Domain property is set to.
Return Values
The following table shows the return values for this method.
Value | Description |
---|---|
S_OK | The Domain property was correctly set. |
E_FAIL | The control is already connected or in the connecting state. |
nonzero error code | An error occurred. |
Remarks
Setting Domain is optional. If it is not set, the user can choose a domain when the Windows Logon dialog box appears during the connection.
The Domain property can be set only if the control is not in the connected state. The method returns E_FAIL if it is called after the control is connected. You can check if the control is connected by calling the IMsTscAx::get_Connected method.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Discodlg.h. Mstsax.idl.
Link Library: Mstsax.lib.
See Also
IMsTscAx | IMsTscAx::get_Domain
Send Feedback on this topic to the authors