3.22.4.7 IUpdateCollection::Clear (Opnum 14)

The IUpdateCollection::Clear (opnum 14) method empties the collection.

 HRESULT Clear();

This method has no parameters.

Return Values: The method MUST return information in an HRESULT data structure. The severity bit in the structure identifies the following conditions:

  • If the severity bit is set to 0, the method completed successfully.

  • If the severity bit is set to 1, the method failed and encountered a fatal error.

If the collection is read-only, the server MUST return an error.

Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].

This method SHOULD clear the List ADM element and set the value of the Count ADM element to 0.