ITcModuleInstance::ImportXml

For module instances, <TcModuleInstance> is imported along with modules, data types, and optional translations; <TcModuleRefactorInfo> is processed; and, if necessary, a suitable runtime app class is searched for from a <TcModuleClass> node. For process images, the import is rejected because the element type is invalid. For fieldbus boxes, importing is supported only for certain terminals and requires a direct <Module> node under <TcModuleInstance>—that is, not the same nesting structure that the export generates.

Signature

HRESULT ImportXml(BSTR bstrXML);

Parameter

Name

Type

Description

bstrXML

BSTR

[in] XML to be imported.

Return value

Name

Type

Description

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes