IDebugFunctionObject::CreatePrimitiveObject

Applies to: yesVisual Studio noVisual Studio for Mac noVisual Studio Code

Creates a primitive data object, such as a simple integer.

Syntax

int CreatePrimitiveObject(
   enum_OBJECT_TYPE ot,
   out IDebugObject ppObject
);

Parameters

ot
[in] A value from the OBJECT_TYPE enumeration representing the type of primitive to create.

ppObject
[out] Returns an IDebugObject representing the newly created object.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

Call this method to create an object that represents a primitive object that is a parameter to the function which is represented by the IDebugFunctionObject interface. For example, if the expression string is "myString(5)", this method would be used to create an object representing the integer 5.

See also