IWbemQualifierSet::BeginEnumeration method
The IWbemQualifierSet::BeginEnumeration method resets before there is an enumeration of all the qualifiers in the object. To enumerate all of the qualifiers on an object, this method must be called before the first call to IWbemQualifierSet::Next. The order in which qualifiers are enumerated is guaranteed to be invariant for a given instance of IWbemQualifierSet.
Syntax
HRESULT BeginEnumeration(
[in] LONG lFlags
);
Parameters
- lFlags [in]
-
Specifies the qualifiers to include in the enumeration. It must be one of the following constants.
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 |
|---|---|
|
The lFlags parameter was not valid. |
|
There was not enough memory to complete the operation. |
|
A second call was made to IWbemQualifierSet::BeginEnumeration without an intervening call to IWbemQualifierSet::EndEnumeration. |
|
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