Click to return to the Reusing Browser Technology home page    
IHTMLBookmarkCollection::...     IHTMLBRElement Interface     IHTMLBookmarkCollection I...    
Web Workshop  |  Reusing Browser Technology

IHTMLBookmarkCollection::item Method


Retrieves the current value of an item in the collection.

Syntax

HRESULT item(
    long index,
    VARIANT *pVarBookmark
);

Parameters

index
Long integer value that returns the bookmark item requested.
pVarBookmark
Address of a VARIANT structure that returns the current item.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

This function returns S_OK even if the element is not found. You should 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.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.