MI_Class_GetMethodAt function (mi.h)

Gets details of a method based on the method index.

Syntax

MI_INLINE MI_Result MI_Class_GetMethodAt(
  [in]            const MI_Class  *self,
                  MI_Uint32       index,
                  const MI_Char   **name,
  [out, optional] MI_QualifierSet *qualifierSet,
  [out, optional] MI_ParameterSet *parameterSet
);

Parameters

[in] self

A pointer to the class object from which the method information is to be retrieved.

index

Zero-based index of the requested method.

name

A pointer to a pointer to the returned name of the method. The memory associated with the name is valid until the class object is deleted. If this information is not needed, pass NULL for this parameter.

[out, optional] qualifierSet

A pointer to a variable to receive the returned qualifier set. This parameter is optional. The memory associated with the qualifier set is valid until the class object is deleted. When you have finished using the class qualifier set, delete the class object by calling the MI_Class_Delete function. If this information is not needed, pass NULL for this parameter.

[out, optional] parameterSet

A pointer to a variable to receive the returned parameter set. The parameter set also contains the return type and return type qualifier set. This parameter is optional. The memory associated with the parameter set is valid until the class object is deleted. When you have finished using the parameter set, delete the class object by calling the MI_Class_Delete function. If this information is not needed, pass NULL for this parameter.

Return value

This function returns MI_INLINE MI_Result.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
Header mi.h
Redistributable Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2