IDebugObject::SetValue
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. 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 the object from a consecutive series of bytes.
Syntax
HRESULT SetValue(
BYTE* pValue,
UINT nSize
);
int SetValue(
byte[] pValue,
uint nSize
);
Parameters
pValue
[in] An array of bytes representing the new value.
nSize
[in] The size of the value in bytes.
Return Value
If successful, returns S_OK; otherwise, returns an error code.
Remarks
The values in the array are copied into this IDebugObject object, replacing any existing value. The size of the new value can be larger or smaller than the existing value. This IDebugObject
cannot be a null reference.