ITcTypeInstance6::GetValueToString
Formatiert einen Wertpuffer als Text. Erwartet wird ein eindimensionales VARIANT vom Typ VT_ARRAY | VT_UI1. Die darin enthaltenen Bytes werden als Binärrepräsentation des Typs interpretiert.
Signatur
HRESULT GetValueToString(VARIANT data, ULONG formatIdx, BSTR* pToString);
Parameter
Name | Typ | Beschreibung |
|---|---|---|
data | VARIANT | [in] Eindimensionales Byte- |
formatIdx | ULONG | [in, defaultvalue(0)] 0-basierter Formatindex. |
Rückgabewert
Name | Typ | Beschreibung |
|---|---|---|
pToString | BSTR* | [out, retval] Formatierter Textwert. |
(HRESULT) | HRESULT |
|
Fehlercodes
-
E_POINTER:pToStringistNULL. -
ADS_E_ERROR:datahat nicht das erwartete Format oder konnte nicht gesperrt werden.
Siehe auch
- SetValueToString