Clear (clear)

Removes all profiles from the collection.

Syntax

HRESULT Clear();

Parameters

None.

Return Value

The following table describes possible return values.

Return Value Description

S_OK

The function successfully removed all profiles from the collection.

E_WPRC_FAILED_TO_CLEAR_PROFILE_COLLECTION

The library failed to remove all profiles from the collection. Use IErrorInfo to obtain detailed error information.

IProfileCollection