3.2.4.2.10.5 Commit (Opnum 11)

The Commit method commits the non-persisted version of the object's current state to the server's list of objects.

 [id(FSRM_DISPID_OBJECT | 0x02)] HRESULT Commit();

This method has no parameters.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x80045310

FSRM_E_ALREADY_EXISTS

The object being created already exists.

0x80045310

FSRM_E_DUPLICATE_NAME

An object with the same name already exists.

0x8004530E

FSRM_E_REQD_PARAM_MISSING

A required parameter for the object was not set before calling commit.

There are no parameters for this method.

The server MUST do one of the following or return a nonzero error code:

  • If the FSRM Base Object.Deleted property is set to true, the server MUST delete the persisted version of the object associated with this non-persisted version.

  • If the FSRM Base Object.Deleted property is set to false, the server MUST apply the state of the non-persisted version of the object to the persisted version of the object.

The specifics for deleting the persisted object or applying the non-persisted state vary according to the type of object being committed: