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:
Directory Quota: IFsrmQuota::Commit (section 3.2.4.2.16.1)
Auto Apply Quota: IFsrmAutoApplyQuota::Commit (section 3.2.4.2.17.1)
Directory Quota Template: IFsrmQuotaTemplate::Commit (section 3.2.4.2.20.1)
File Group: IFsrmFileGroup::Commit (section 3.2.4.2.23.1)
File Screen: IFsrmFileScreen::Commit (section 3.2.4.2.27.1)
File Screen Exception: IFsrmFileScreenException::Commit (section 3.2.4.2.28.1)
File Screen Template: IFsrmFileScreenTemplate::Commit (section 3.2.4.2.30.1)
Report Job: IFsrmReportJob::Commit (section 3.2.4.2.34.1)
Property Definition: IFsrmPropertyDefinition::Commit (section 3.2.4.2.37.1)
Classification Type Rule: IFsrmClassificationRule::Commit (section 3.2.4.2.42.1)
Classifier Type Module Definition: IFsrmClassifierModuleDefinition::Commit (section 3.2.4.2.44.1)
Storage Type Module Definition: IFsrmStorageModuleDefinition::Commit (section 3.2.4.2.47.1)
File Management Job: IFsrmFileManagementJob::Commit (section 3.2.4.2.48.1)