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 |
|
Error codes
-
E_POINTER:pipTypeisNULL. -
ADS_E_NOTFOUND:idxdoes not match an existing child, or the type has no children.
See also
- GetChildItemName
- GetChildItemBitOffs