IMsmMerge::Connect method (mergemod.h)

The Connect method connects a module that has been, or will be, merged into the database to an additional feature. For more information, see the Connect method of the Merge object.

IMsmMerge2::Connect    Mergemod.dll version 2.0 or later.

 
IMsmMerge::Connect      All Mergemod.dll versions.

Syntax

HRESULT Connect(
  [in] const BSTR Feature
);

Parameters

[in] Feature

The name of a feature in the database. A LPCWSTR may be used in place of a BSTR.

Return value

This method can return one of these values.

Value Meaning
E_INVALIDARG
One of the arguments is invalid.
E_FAIL
The connect failed.
S_OK
The function succeeded.

Remarks

The feature must exist before this function is called. Errors may be retrieved using get_Errors. Errors and informational messages are posted to the current log file.

Changes made to the database are not be saved to disk unless CloseDatabase function is called with bCommit set to TRUE.

Requirements

Requirement Value
Minimum supported client Mergemod.dll 1.0 or later
Target Platform Windows
Header mergemod.h
DLL Mergemod.dll

See also

Merge Module Automation