Share via


Remove

Applies To: Windows 8, Windows 8.1

Removes an IProfile object from the collection.

HRESULT Remove
  ([in] IProfile* pProfile)
;

Parameters

  • pProfile
    [in] A pointer to the IProfile object to be removed from the collection.

Return Value

The following table describes possible return values.

Return Value Description

S_OK

The function successfully removed the profile from the collection.

E_INVALIDARG

The argument is invalid. Use IErrorInfo to obtain detailed error information.

E_WPRC_FAILED_TO_REMOVE_PROFILE

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

See Also

Reference

IProfileCollection