ITypeInfo2::GetVarIndexOfMemId method (oaidl.h)

Binds to a specific member based on a known DISPID, where the member name is not known (for example, when binding to a default member).

Syntax

HRESULT GetVarIndexOfMemId(
  [in]  MEMBERID memid,
  [out] UINT     *pVarIndex
);

Parameters

[in] memid

The member identifier.

[out] pVarIndex

The index.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_INVALIDARG
One or more of the arguments is not valid.
E_OUTOFMEMORY
Insufficient memory to complete the operation.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

ITypeInfo2