IMsTscAx::put_Server
This method sets the value of the Server property, which is the name of the server to be connected to.
HRESULT put_Server(
BSTR serverProperty
);
Parameters
- serverProperty
[in] The string value the Server property is set to.
Return Values
This following table shows the return values for this method.
Value | Description |
---|---|
S_OK | The Server property was correctly set. |
E_FAIL | The control is already connected or in the connecting state. |
nonzero error code | An error occurred. |
Remarks
The Server property can be a DNS name or IP address.
Server must be set before calling the IMsTscAx::Connect method. It is the only property that must be set before connecting.
The Server 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_Server
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.