Partager via


IDebugFormatter::GetVariantForString

Returns a VARIANT containing the given string.

Syntax

HRESULT GetVariantForString(  
   LPCOLESTR  pwstrValue,  
   VARIANT*   pvar  
);  

Parameters

pwstrValue
[in] String to store in a VARIANT.

pvar
[out] VARIANT containing pwstrValue.

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 VARIANT containing the given string.

See also

IDebugFormatter Interface