IFsrmQuotaTemplate::CommitAndUpdateDerived method

[This method is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMQuota class.]

Saves the quota template and then applies any changes to the derived quota objects.

Syntax


HRESULT CommitAndUpdateDerived(
  [in]  FsrmCommitOptions         commitOptions,
  [in]  FsrmTemplateApplyOptions  applyOptions,
  [out] IFsrmDerivedObjectsResult **derivedObjectsResult
);

Parameters

commitOptions [in]

The options for saving the template. For possible values, see the FsrmCommitOptions enumeration.

applyOptions [in]

The options used to choose the derived objects to which the changes are applied. For possible values, see the FsrmTemplateApplyOptions enumeration.

derivedObjectsResult [out]

An IFsrmDerivedObjectsResult interface that you use to determine the list of derived objects that were updated and whether the update was successful.

Return value

The method returns the following return values.

S_OK

Success

E_FSRM_E_NOT_SUPPORTED

Returned for the following reasons:

  • The FsrmCommitOptions_Asynchronous option is not supported.
  • Delete has already been called for the template.
E_INVALIDARG

The derivedObjectsResult parameter is NULL.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmQuota.h

DLL

SrmSvc.dll

IID

IID_IFsrmQuotaTemplate is defined as a2efab31-295e-46bb-b976-e86d58b52e8b

See also

IFsrmQuotaTemplate
MSFT_FSRMQuota

 

 

Show: