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 SAFEARRAY containing the constant value.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes

See also