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

S_OK if successful, otherwise an error code.

Error codes

See also