ICorDebugEval2::CreateValueForType Method
Gets a pointer to a new ICorDebugValue of the specified type, with an initial value of zero or null.
Syntax
HRESULT CreateValueForType (
[in] ICorDebugType *pType,
[out] ICorDebugValue **ppValue
);
Parameters
pType
[in] Pointer to an ICorDebugType object that represents the type.
ppValue
[out] Pointer to the address of an ICorDebugValue
object that represents the value.
Remarks
CreateValueForType
generalizes ICorDebugEval::CreateValue by allowing you to specify an arbitrary object type, including constructed types such as List<int>
. The only purpose of this method is to generate a value that can be passed to a function evaluation.
The type must be a class or a value type. You cannot use this method to create array values or string values.
Requirements
Platforms: See System Requirements.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET Framework Versions: Available since 2.0
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for