Freigeben über


IDebugArrayObject::GetCount

Gets the count of elements in the array.

[C++]
HRESULT GetCount( 
   DWORD* pdwElements
);

[C#]
int GetCount(
   out uint pdwElements
);

Parameters

  • pdwElements
    [out] Returns the count.

Return Value

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

Remarks

This method sees all of the elements of an array object as a one-dimensional array, even if the array object is multi-dimensional. For example, given the array myarray[3][2][6], this method would return 36 in the pdwElements parameter. Use the IDebugArrayObject::GetElement method to retrieve the individual elements one at a time.

See Also

Reference

IDebugArrayObject