ITcTypeInstance3::GetChildItemType

Returns the type of a child element based on a 0-based index. For struct fields of array type and for multidimensional arrays, a temporary array type is created internally. Otherwise, the direct field type or base type is returned.

Signature

HRESULT GetChildItemType(long idx, ITcTypeInstance3** pipType);

Parameter

Name

Type

Description

idx

long

[in] 0-based child index.

Return value

Name

Type

Description

pipType

ITcTypeInstance3**

[out, retval] Type of the child element.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes

See also