IDebugFunctionObject::CreateArrayObject

Creates an array object. This array can contain either primitive or object instance values.

HRESULT CreateArrayObject( 
   OBJECT_TYPE    ot,
   IDebugField*   pClassField,
   DWORD          dwRank,
   DWORD          dwDims[],
   DWORD          dwLowBounds[],
   IDebugObject** ppObject
);
int CreateArrayObject(
   enum_OBJECT_TYPE ot, 
   IDebugField      pClassField, 
   uint             dwRank, 
   uint[]           dwDims, 
   uint[]           dwLowBounds, 
   out IDebugObject ppObject
);

Parameters

  • ot
    [in] Specifies a value from the OBJECT_TYPE enumeration indicating the type of the new array object.

  • pClassField
    [in] An IDebugField object representing the class of an object, if creating an array of object instance values. If creating an array of primitive objects, this parameter is a null value.

  • dwRank
    [in] The rank or number of dimensions of the array.

  • dwDims
    [in] The sizes of each dimension of the array.

  • dwLowBounds
    [in] The origin of each dimension (typically 0 or 1).

  • ppObject
    [out] Returns an IDebugObject object representing the newly created array. This is actually an IDebugArrayObject object.

Return Value

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

Remarks

Call this method to create an object that represents an array parameter to the function which is represented by the IDebugFunctionObject interface.

See Also

Reference

IDebugFunctionObject