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

Name

Type

Description

bUseNamespaceForMembers

VARIANT_BOOL

[in] VARIANT_TRUE to display members with namespace prefixes.

Return value

Name

Type

Description

pIecDeclaration

BSTR*

[out, retval] IEC declaration of the type.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes

See also