Partager via


PopulateNamespaceTable method

Populates the namespace table for the current document.

Syntax

HRESULT retVal = object.PopulateNamespaceTable();

Parameters

This method has no parameters.

Return value

Type: HRESULT

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

Remarks

IHostBehaviorInit::PopulateNamespaceTable was introduced in Microsoft Internet Explorer 6.

If the host implements the IHostBehaviorInit interface, MSHTML calls the PopulateNamespaceTable method. The host can then query MSHTML for the IElementNamespaceTable interface and use the IElementNamespaceTable::AddNamespace method to begin populating the namespace table.