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