Share via


IMsTscAx::Connect (Windows Embedded CE 6.0)

1/6/2010

This method initiates a connection using the properties currently set on the control.

Syntax

HRESULT Connect();

Parameters

None.

Return Value

The following table shows the return values for this method.

Value Description

S_OK

Connection was correctly initiated.

E_FAIL

The control is already connected or in the connecting state.

nonzero error code

An error occurred.

Remarks

The only required property is the server name. For more information, refer to the IMsTscAx::put_Server method.

The control connects asynchronously, therefore a return from a Connect call indicates only that the connection has been initiated successfully, not that it has been completed. You should respond to events on the IMsTscAxEvents interface to determine when the control has successfully connected (or has been disconnected).

Once Connect has been called, most control properties cannot be set until the control returns to the disconnected state.

Requirements

Header discodlg.h, mstsax.idl
Library Mstsax.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

IMsTscAx
IMsTscAx::Disconnect