Partager via


IFsrmQuotaBase Interface

 

Used to manage quotas.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

[GuidAttribute("1568A795-3924-4118-B74B-68D8F0FA5DAF")]
public interface IFsrmQuotaBase : IFsrmObject
[GuidAttribute("1568A795-3924-4118-B74B-68D8F0FA5DAF")]
public interface class IFsrmQuotaBase : IFsrmObject
[<GuidAttribute("1568A795-3924-4118-B74B-68D8F0FA5DAF")>]
type IFsrmQuotaBase = 
    interface
        interface IFsrmObject
    end
<GuidAttribute("1568A795-3924-4118-B74B-68D8F0FA5DAF")>
Public Interface IFsrmQuotaBase
    Inherits IFsrmObject

Properties

Name Description
System_CAPS_pubproperty Description

Retrieves or sets the description of the object.

System_CAPS_pubproperty id

Retrieves the identifier of the object.

System_CAPS_pubproperty QuotaFlags

Retrieves or sets the quota flags for the object.

System_CAPS_pubproperty QuotaLimit

Retrieves or sets the quota limit for the object.

System_CAPS_pubproperty Thresholds

Retrieves the thresholds for the quota object.

Methods

Name Description
System_CAPS_pubmethod AddThreshold(Int32)

Adds a threshold to the quota object.

System_CAPS_pubmethod Commit()

Saves the quota object in the server's list of objects.

System_CAPS_pubmethod CreateThresholdAction(Int32, _FsrmActionType)

Creates an action and associates it with the specified threshold.

System_CAPS_pubmethod Delete()

Removes the quota object from the server's list of objects.

System_CAPS_pubmethod DeleteThreshold(Int32)

Deletes a threshold from the quota object.

System_CAPS_pubmethod EnumThresholdActions(Int32)

Enumerates all the actions for the specified threshold.

System_CAPS_pubmethod ModifyThreshold(Int32, Int32)

Changes the threshold value.

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".

See Also

Microsoft.Storage Namespace

Return to top