Retrieves the current value of an IHTMLAttributeCollection item.
Syntax
HRESULT item( VARIANT *name, IDispatch **pdisp );
Parameters
- name
- Optional. Address of a VARIANT structure that specifies the name of the item in the collection.
- pdisp
- Address of a pointer to an IDispatch that receives the item in the collection.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This method 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.