ITcTypeInstance3::GetChildItemName
Returns the name of a child element based on a 0-based index. Struct fields are returned as .Feldname, and array elements as [Index], taking into account the lower array boundary.
Signature
HRESULT GetChildItemName(long idx, BSTR* pName);
Parameter
|
Name |
Type |
Description |
|---|---|---|
|
idx |
long |
[in] 0-based child index. |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
pName |
BSTR* |
[out, retval] Child name in field or array notation. |
|
(HRESULT) |
HRESULT |
|
Error codes
-
E_POINTER:pNameisNULL. -
ADS_E_NOTFOUND:idxdoes not match an existing child, or the type has no children.
See also
- GetChildItemType
- GetChildItemBitOffs