Partager via


IDebugFormatter::GetStringForVariant

Returns a string that represents the given VARIANT value.

Syntax

HRESULT GetStringForVariant(  
   VARIANT*  pvar,  
   ULONG     nRadix,  
   BSTR*     pbstrValue  
);  

Parameters

pvar
[in] VARIANT to represent as a string.

nRadix
[in] Radix to use for numeric values.

pbstrValue
[out] String representing pvar.

Return Value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Value Description
S_OK The method succeeded.

Remarks

This method returns a string that represents the given variant value.

See also

IDebugFormatter Interface