Compartilhar via


removeNamedItemNS method

Removes a named item that is specified by a namespace and local name.

 

Syntax

HRESULT retVal = object.removeNamedItemNS(pvarNS, bstrname, ppRemovedNode);

Parameters

  • pvarNS [in]
    Type: VARIANT

    The namespace name of the attribute to remove.

  • bstrname [in]
    Type: BSTR

    The local name of the desired attribute within the specified namespace.

  • ppRemovedNode [out, retval]
    Type: IHTMLDOMAttribute

    Returns a pointer to the IHTMLDOMAttribute object that is removed from the document if it succeeds; otherwise, NULL.

Return value

Type: HRESULT

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

Standards information

See also

IHTMLAttributeCollection4::removeNamedItem