Muokkaa

Jaa


EndMethodEnumeration function

Terminates an enumeration sequence started with a call to the BeginMethodEnumeration function.

Note

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

Syntax

HRESULT EndMethodEnumeration (
   [in] int               vFunc,
   [in] IWbemClassObject* ptr
);

Parameters

vFunc
[in] This parameter is unused.

ptr
[in] A pointer to an IWbemClassObject instance.

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_UNEXPECTED 0x8004101d An internal error occurred.
WBEM_S_NO_ERROR 0 The function call was successful.

Remarks

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

The caller begins the enumeration sequence using BeginMethodEnumeration function, and then calls the NextMethod functionuntil the method returns WBEM_S_NO_MORE_DATA. The caller optionally finishes the sequence by calling EndMethodEnumeration. The caller may terminate the enumeration early by calling EndMethodEnumeration at any time.

Requirements

Platforms: See System Requirements.

Header: WMINet_Utils.idl

.NET Framework Versions: Available since 4.7.2

See also