Windows Dev Center

IWbemClassObject::BeginMethodEnumeration method

Use the IWbemClassObject::BeginMethodEnumeration method call to begin an enumeration of the methods available for the object.

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

Syntax


HRESULT BeginMethodEnumeration(
  [in] LONG lEnumFlags
);

Parameters

lEnumFlags [in]

Specifies the scope of the enumeration.

Possible values:

ValueMeaning
WBEM_FLAG_LOCAL_ONLY

Only include methods that are defined in the class itself.

WBEM_FLAG_PROPAGATED_ONLY

Only include methods that are inherited from parent classes.

 

Return value

This method returns an HRESULT indicating the status of the method call. The following table lists the value contained within an HRESULT. For general HRESULT values, see System Error Codes.

Return codeDescription
WBEM_E_INVALID_PARAMETER

A nonzero flag value was used.

WBEM_S_NO_ERROR

The call succeeded.

 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

WbemCli.h (include Wbemidl.h)

IDL

WbemCli.idl

Library

WbemUuid.lib

DLL

CIMWin32.dll;
Esscli.dll;
Evntrprv.dll;
Fastprox.dll;
Framedyn.dll;
Krnlprov.dll;
Ncprov.dll;
Wbemcore.dll;
Wbemess.dll;
Wmipiprt.dll

CLSID

CLSID_WbemClassObject is defined as 9A653086-174F-11d2-B5F9-00104B703EFD

IID

IID_IWbemClassObject is defined as dc12a681-737f-11cf-884d-00aa004b2e24

See also

IWbemClassObject
IWbemClassObject::NextMethod

 

 

Show:
© 2015 Microsoft