This topic has not yet been rated - Rate this topic

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.

Return codeDescription
WBEM_E_INVALID_PARAMETER

A nonzero flag value was used.

WBEM_S_NO_ERROR

The call succeeded.

 

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wbemcli.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

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

See also

IWbemClassObject
IWbemClassObject::NextMethod

 

 

Send comments about this topic to Microsoft

Build date: 11/19/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.