doImport method

[This documentation is preliminary and is subject to change.]

Dynamically imports an element behavior.

Syntax

HRESULT retVal = object.doImport(bstrImplementationUrl);

Standards information

There are no standards that apply here.

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.

Remarks

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

 

 

Build date: 6/12/2012