IHTMLBookmarkCollection::item Method

Retrieves an object from a bookmarks collection.

Syntax


HRESULT item(
    long index,
    VARIANT *pVarBookmark
);

Parameters

index
[in]  An long that specifies the zero-based index of the object to retrieve.
pVarBookmark
[out, retval] A VARIANT of type VT_DISPATCH containing an IDispatch interface pointer that represents an object if successful, otherwise NULL.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This method returns S_OK even if the element is not found. Check the value of the IDispatch pointer returned by this call. If the value of the pointer is NULL, the element was not found; and the call was not successful.

Community Additions

Show: