API | ITcTypeInstance Return value Error codes E_POINTER : pvData is NULL . ADS_E_INVALIDDATA : text could not be converted to a valid binary representation of the type. See also GetValueToString 5.9.5.2 ITcTypeInstance6::TypeFormatName | ITcTypeInstance6::TypeFormatName Returns the name of the type format to idx . For alias types that do not have their own formats, the behavior is delegated to the base type. Signature HRESULT TypeFormatName(ULONG idx, BSTR* pName); Parameter Return value Error codes E_POINTER : pName is NULL . ADS_E_INVALIDARRAYIDX : idx is outside the range of available formats.
See also TypeFormatPreview 5.9.5.3 ITcTypeInstance6::TypeFormatPreview | ITcTypeInstance6::TypeFormatPreview Returns the preview text for the type format to idx . For alias types that do not have their own formats, the behavior is delegated to the base type. Signature HRESULT TypeFormatPreview(ULONG idx, BSTR* pPreview); TE1000 84 Version: 1.7.0 Name Type Description formatIdx ULONG [in, defaultvalue(0)] 0-based format index. Name Type Description pvData VARIANT* [out, retval] Byte SAFEARRAY containing the binary representation of the value. (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description idx ULONG [in] 0-based format index.
Name Type Description pName BSTR* [out, retval] Name of the format. (HRESULT) HRESULT S OK if successful, otherwise an error code. _