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 | |
---|---|---|
Description | Retrieves or sets the description of the object. |
|
id | Retrieves the identifier of the object. |
|
QuotaFlags | Retrieves or sets the quota flags for the object. |
|
QuotaLimit | Retrieves or sets the quota limit for the object. |
|
Thresholds | Retrieves the thresholds for the quota object. |
Methods
Name | Description | |
---|---|---|
AddThreshold(Int32) | Adds a threshold to the quota object. |
|
Commit() | Saves the quota object in the server's list of objects. |
|
CreateThresholdAction(Int32, _FsrmActionType) | Creates an action and associates it with the specified threshold. |
|
Delete() | Removes the quota object from the server's list of objects. |
|
DeleteThreshold(Int32) | Deletes a threshold from the quota object. |
|
EnumThresholdActions(Int32) | Enumerates all the actions for the specified threshold. |
|
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
Return to top