Share via


Resolve method

Provides information about the implementation of an element behavior.

Syntax

HRESULT retVal = object.Resolve(bstrNamespace, bstrTagName, bstrAttrs, pNamespace);

Parameters

  • bstrNamespace [in]
    Type: BSTR

    A BSTR that specifies the name of the namespace.

  • bstrTagName [in]
    Type: BSTR

    A BSTR that specifies the name of the element behavior.

  • bstrAttrs [in]
    Type: BSTR

    A BSTR that specifies the attributes used with the element behavior. This argument contains a structure of name/value pairs.

  • pNamespace [in]
    Type: IElementNamespace

    The address of the IElementNamespace interface for the namespace to which any tags are added.

Return value

Type: HRESULT

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

Remarks

This method is implemented by the host of MSHTML. It is invoked in response to the IElementNamespaceTable::AddNamespace method with the ELEMENTNAMESPACEFLAGS_QUERYFORUNKNOWNTAGS flag.

If a host that implements this method supports the tag given in bstrTagName, it can call IElementNamespace::AddTag to add the tag to the namespace.

Examples

The bstrAttrs argument is a BSTR containing a packed name/value pair structure, as indicated by the following.

[Name1][NULL][Value1][NULL]
[Name2][NULL][Value2][NULL]
...
[NameX][NULL][ValueX][NULL][NULL]

A NULL Name indicates the end of the name/value sequence. Any of the Value strings can be empty.