API | ITcTreeItemCollection 5.9.9 ITcTypeInstance10 | ITcTypeInstance10 Inherits from: ITcTypeInstance9 ITcTypeInstance10 adds namespace-controlled output to the IEC view and explicitly separates the short name, full name, and namespace from one another. Properties Methods 5.9.9.1 ITcTypeInstance10::GetIecDeclaration | ITcTypeInstance10::GetIecDeclaration Returns the IEC declaration of the type for the current target. Unlike the IecDeclaration property of ITcTypeInstance, this method lets you control whether members are output with namespace prefixes.
Signature HRESULT GetIecDeclaration(VARIANT_BOOL bUseNamespaceForMembers, BSTR* pIecDeclaration); Parameter Return value Error codes E_POINTER : pIecDeclaration is NULL . See also ITcTypeInstance 5.10 ITcTreeItemCollection | ITcTreeItemCollection ITcTreeItemCollection is a COM collection for ITcSmTreeItem7 objects. It supports count, index-based access, and enumeration over IEnumVARIANT . The collection holds references to the Tree Items it contains. ITcTreeItemCollection2 adds write operations. Chain of inheritance ITcTreeItemCollection └── ITcTreeItemCollection2 TE1000 91 Version: 1.7.0 Property Type get/set Description FullName BSTR* get Returns the full name, including the namespace.
Namespace BSTR* get Returns only the namespace of the type. Method Description GetIecDeclaration Optionally provides the IEC declaration with namespace prefixes for members. Name Type Description bUseNamespaceFor Members VARIANT BOOL _ [in] VARIANT TRUE to display members with namespace _ prefixes. Name Type Description pIecDeclaration BSTR* [out, retval] IEC declaration of the type. (HRESULT) HRESULT S OK if successful, otherwise an error code. _