createDocumentFragment method

Creates a new document and returns a pointer to the newly created document.

Syntax

HRESULT retVal = object.createDocumentFragment(pNewDoc);

Parameters

  • pNewDoc [out, retval]
    Type: [IHTMLDocument2](aa752574(v=vs.85).md)

    A pointer to an IHTMLDocument2 interface that receives the newly created document.

Return value

Type: HRESULT

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

Standards information