IFsrmQuotaManager interface

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

Used to manage quotas.

To get this interface, call the CoCreateInstanceEx function. Use CLSID_FsrmQuotaManager as the class identifier and __uuidof(IFsrmQuotaManager) as the interface identifier. For an example, see Defining a Quota.

Members

The IFsrmQuotaManager interface inherits from the IDispatch interface. IFsrmQuotaManager also has these types of members:

Methods

The IFsrmQuotaManager interface has these methods.

MethodDescription
CreateAutoApplyQuota

Creates an automatic quota for the specified directory.

CreateQuota

Creates a quota for the specified directory.

CreateQuotaCollection

Creates an empty collection to which you can add quotas.

EnumAutoApplyQuotas

Enumerates the automatic quotas that are associated with the specified directory.

EnumEffectiveQuotas

Enumerates all the quotas that affect the specified path.

EnumQuotas

Enumerates the quotas that are associated with the specified directory.

GetAutoApplyQuota

Retrieves the automatic quota for the specified directory.

GetQuota

Retrieves the quota for the specified directory.

GetRestrictiveQuota

Retrieves the most restrictive quota for the specified path.

Scan

Starts a quota scan on the specified path.

 

Properties

The IFsrmQuotaManager interface has these properties.

PropertyAccess typeDescription

ActionVariableDescriptions

Read-only

Retrieves the descriptions for the macros contained in the ActionVariables property.

ActionVariables

Read-only

Retrieves a list of macros that you can specify in action property values.

 

Remarks

A directory quota restricts the size of a specific directory to a configurable quota limit. In addition to the limit, a directory quota may be configured with one or more directory quota thresholds which define a set of actions that are initiated when the quota usage reaches the threshold value.

You can create a quota, an automatic quota, or a quota template. A quota applies to a specific directory. The automatic quota applies to the specified directory and automatically creates quotas for new and existing subdirectories of the specified directory. The quota template is used to modify properties in bulk by applying the changes to quotas that derive from the quota template.

Note that if the directory is renamed, the quota applies to the renamed directory. If the directory is deleted, the quota is deleted.

To create this object from a script, use the program identifier, "Fsrm.FsrmQuotaManager".

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008

Header

FsrmQuota.h (include FsrmQuota.h or FsrmTlb.h)

DLL

SrmSvc.dll

CLSID

CLSID_FsrmQuotaManager is defined as 90dcab7f-347c-4bfc-b543-540326305fbe

IID

IID_IFsrmQuotaManager is defined as 8bb68c7d-19d8-4ffb-809e-be4fc1734014

IID_IFsrmQuotaManagerEx is defined as 4846cb01-d430-494f-abb4-b1054999fb09

See also

FSRM Interfaces
IFsrmQuotaManagerEx
FsrmQuotaManager
MSFT_FSRMQuota

 

 

Show: