IMsmError::get_ModuleKeys Method

Windows Installer

IMsmError::get_ModuleKeys Method

The get_ModuleKeys method retrieves the ModuleKeys property of the Error object. This method returns a pointer to a string collection that contains the primary keys of the row in the module causing the error, one key per entry in the collection.

Syntax

C++HRESULT get_ModuleKeys(
  [out]  IMsmStrings **ErrorKeys
);

Parameters

ErrorKeys [out]

A pointer to a location in memory that receives a pointer to a string collection.

Return Value

The method can return one of the following values.

Value Meaning
E_INVALIDARG

ErrorKeys is null.

S_OK

The function succeeded.

 

Remarks

The client is responsible for releasing the string collection when it is no longer required.

The collection is empty if the values do not apply to the type of the error. You can determine the type of error by calling IMsmError::get_Type.

Requirements

VersionMergemod.dll 1.0 or later
HeaderMergemod.h
DLLMergemod.dll
IIDIID_IMsmError is defined as 0ADDA828-2C26-11D2-AD65-00A0C9AF11A6

See Also

Merge Module Automation

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.