Share via


IMLQuery::Reset (Compact 7)

3/12/2014

This method resets the IMLQuery object to its original empty state.

Syntax

HRESULT Reset(
);

Parameters

None

Return Values

Returns the HRESULT values shown in the following table.

Value Description

S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

E_FAIL

The method was not successful.

E_MEMORY

An out of memory error occurred.

Remarks

Use this method to reset the IMLQuery object so you can use it for a different query or result list. This method clears the query string, resets the number of returned results to the default value of 10, and frees memory allocated for the returned results set.

This resets the IMLQuery object so that no results and no query clauses are present.

Requirements

Header

mlibdll.h,
mlibdll.idl

Library

mlibdll.lib

See Also

Reference

IMLQuery