Muokkaa

Jaa


BeginMethodEnumeration function

Begins an enumeration of the methods available for the object.

Note

This API is for internal use only. It's not intended for use from developer code.

Syntax

HRESULT BeginMethodEnumeration (
   [in] int               vFunc,
   [in] IWbemClassObject* ptr,
   [in] LONG              lEnumFlags
);

Parameters

vFunc [in] This parameter is unused.

ptr [in] A pointer to an IWbemClassObject instance.

lEnumFlags [in] Zero (0) for all methods, or a flag that specifies the scope of the enumeration. The following flags are defined in the WbemCli.h header file, or you can define them as constants in your code:

Constant Value Description
WBEM_FLAG_LOCAL_ONLY 0x10 Limit the enumeration to methods that are defined in the class itself.
WBEM_FLAG_PROPAGATED_ONLY 0x20 Limit the enumeration to properties that are inherited from base classes.

Return value

The following values returned by this function are defined in the WbemCli.h header file, or you can define them as constants in your code:

Constant Value Description
WBEM_E_INVALID_PARAMETER 0x80041008 lEnumFlags is non-zero and is not one of the specified flags.
WBEM_S_NO_ERROR 0 The function call was successful.

Remarks

This function wraps a call to the IWbemClassObject::BeginMethodEnumeration method.

This method call is only supported if the current object is a class definition. Method manipulation is not available from IWbemClassObject pointers that point to instances. The order in which methods are enumerated is guaranteed to be invariant for a given instance of IWbemClassObject.

Requirements

Platforms: See System Requirements.

Header: WMINet_Utils.idl

.NET Framework Versions: Available since 4.7.2

See also