ITcTypeInstance6::SetValueToString
Parst einen Text gemäß dem angegebenen Format in die Binärdarstellung des Typs. Bei Erfolg wird ein Byte-SAFEARRAY in Typgröße als VARIANT zurückgegeben.
Signatur
HRESULT SetValueToString(BSTR text, ULONG formatIdx, VARIANT* pvData);
Parameter
|
Name |
Typ |
Beschreibung |
|---|---|---|
|
text |
BSTR |
[in] Zu parsende Textrepräsentation. |
|
formatIdx |
ULONG |
[in, defaultvalue(0)] 0-basierter Formatindex. |
Rückgabewert
|
Name |
Typ |
Beschreibung |
|---|---|---|
|
pvData |
VARIANT* |
[out, retval] Byte- |
|
(HRESULT) |
HRESULT |
|
Fehlercodes
-
E_POINTER:pvDataistNULL. -
ADS_E_INVALIDDATA:textkonnte nicht in eine gültige Binärdarstellung des Typs umgewandelt werden.
Siehe auch
- GetValueToString