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:
Value Meaning - 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 code | Description |
|---|---|
|
A nonzero flag value was used. |
|
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 |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012
