Share via


IDebugField::GetSize

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

This method gets the size of a field, in bytes.

Syntax

HRESULT GetSize( 
   DWORD* pdwSize
);
int GetSize(
   out uint pdwSize
);

Parameters

pdwSize
[out] Returns the size.

Return Value

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

Remarks

All fields have a type and all types have a size. For example, a field with a type of byte has a size of 1 byte.

See also