共用方式為


GetElement method

Retrieves the element to which this segment refers.

Syntax

HRESULT retVal = object.GetElement(ppIElement);

Parameters

  • ppIElement [out]
    Type: IHTMLElement

    Address of a pointer to a variable that receives an IHTMLElement interface pointer for the interface representing the element to which the segment refers.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.