Microsoft SDK for Java

Class_GetFieldCount

Retrieves the total number of fields in the class, including super and static fields.

Syntax

unsigned __cdecl Class_GetFieldCount(ClassClass *cls);

Return Value

Returns the number of fields.

Parameters

*cls The address of the class object. Use FindClass to determine the class.

Remarks

This function is intended to be used with Class_GetFieldByIndex to enumerate fields on a class.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.