次の方法で共有


IDebugArrayField::GetNumberOfElements

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Gets the number of elements in the array.

Syntax

HRESULT GetNumberOfElements( 
   DWORD* pdwNumElements
);
int GetNumberOfElements(
   out uint pdwNumElements
);

Parameters

pdwNumElements
[out] Returns the number of elements in the array.

Return Value

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

Remarks

The value returned is the total number of elements in the array, regardless of the number of dimensions.

See also