Export (0) Print
Expand All

doImport method

Dynamically imports an element behavior.

Syntax


HRESULT retVal = object.doImport(bstrImplementationUrl);

Parameters

bstrImplementationUrl [in]

Type: BSTR

BSTR that specifies the URL of the element behavior to import into the namespace.

Return value

Type: HRESULT

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

Standards information

There are no standards that apply here.

Remarks

Note  IHTMLNamespace::doImport is disabled for Internet Explorer 10 and later.

Once imported into a namespace by this method, an element behavior can be used on the document where the namespace has been declared.

Using this method alone is not enough to enable an element behavior to function on a document; it is also necessary to add a custom element to the body of the primary document, as illustrated in the following code snippet.


<body>
<myns:mycustomtag/>
</body>

See also

Reference
IMPORT
Conceptual
Introduction to Viewlink
About Element Behaviors

 

 

Community Additions

ADD
Show:
© 2014 Microsoft