MI_Class_GetMethod function (mi.h)

Gets details of a method based on the method name.

Syntax

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

Parameters

[in] self

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

[in] name

The name of the method to be retrieved.

[out, optional] qualifierSet

A pointer to the variable to receive the returned method 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.

[out, optional] index

A pointer to a variable to receive the returned index of the specified method. This parameter is optional.

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