Share via


Clear

Applies To: Windows 8, Windows 8.1

Removes all profiles from the collection.

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.

See Also

Reference

IProfileCollection