Share via


IDebugProperty2::SetValueAsString

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Sets the value of a property from a given string.

Syntax

HRESULT SetValueAsString (   
   LPCOLESTR pszValue,  
   UINT      nRadix,  
   DWORD     dwTimeout  
);  
int SetValueAsString (   
   string pszValue,  
   uint   nRadix,  
   uint   dwTimeout  
);  

Parameters

pszValue
[in] A string containing the value to be set.

nRadix
[in] A radix to be used in interpreting any numerical information. This can be 0 to attempt to determine the radix automatically.

dwTimeout
[in] Specifies the maximum time, in milliseconds, to wait before returning from this method. Use INFINITE to wait indefinitely.

Return Value

If successful, returns S_OK; otherwise returns error code. The following table shows other possible values.

Value Description
E_SETVALUE_VALUE_CANNOT_BE_SET The string could not be converted into a property value, or the property value could not be set.
E_SETVALUE_VALUE_IS_READONLY The property is read-only.

See Also

IDebugProperty2