ICorDebugVariableSymbol::SetValue Method

Assigns the value of a byte array to a variable.

Syntax

HRESULT SetValue(
   [in] ULONG32 offset,
   [in] DWORD threadID,
   [in] ULONG32 cbContext,
   [in, size_is(cbContext)] BYTE context[],
   [in] ULONG32 cbValue,
   [in, size_is(cbValue)] BYTE pValue[]
);

Parameters

offset [in] The starting offset in the variable at which to set the value. This parameter is used when writing to member fields in an object.

threadID [in] The thread identifier of the thread whose context must be updated to reflect the new value.

cbContext [in] The size in bytes of the thread context.

context [in] The thread context used to write the value.

cbValue [in] The size in bytes of the pValue buffer.

pValue [in] The buffer that contains the value to set.

Remarks

Note

This method is available with .NET Native only.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.6, .NET Native only

See also