Share via


IMsTscAx::Disconnect

This method disconnects the active connection.

HRESULT Disconnect();

Parameters

None.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method returns a nonzero error code.

Remarks

You can also disconnect the control by closing its main window. For example, if the control is hosted in a Web page, it is not necessary to call this method before leaving the page; closing the control triggers disconnection.

This method returns a failure code if called when the control is not connected.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Discodlg.h. Mstsax.idl.
Link Library: Mstsax.lib.

See Also

IMsTscAx | IMsTscAx::Connect

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.