Microsoft SDK for Java

Class_GetMethodCount

Retrieves the total number of methods in the class, including non-static super methods.

Syntax

unsigned __cdecl Class_GetMethodCount(ClassClass *cls);

Return Value

Returns the number of methods.

Parameters

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

Remarks

This function is intended for use with Class_GetMethodByIndex to enumerate methods in a class.

This function returns the total count of all members, not just the count of those declared in the class specified. To find declared members, you must enumerate methods and call Member_GetClass on each to determine where the method is implemented.

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