ITcTypeInstance7::NamedConstantName
Returns the name of the named constant to idx. For alias types that do not have their own constants, the behavior is delegated to the base type.
Signature
HRESULT NamedConstantName(ULONG idx, BSTR* pName);
Parameter
|
Name |
Type |
Description |
|---|---|---|
|
idx |
ULONG |
[in] 0-based constant index. |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
pName |
BSTR* |
[out, retval] Name of the named constant. |
|
(HRESULT) |
HRESULT |
|
Error codes
-
E_POINTER:pNameisNULL. -
ADS_E_INVALIDARRAYIDX:idxis not in the list of constants.
See also
- NamedConstantValue