IFsrmQuota Interface
Used to define a quota for a specified directory and to retrieve use statistics.
Namespace: Microsoft.Storage
Assembly: srmlib (in srmlib.dll)
Syntax
[GuidAttribute("377F739D-9647-4B8E-97D2-5FFCE6D759CD")]
public interface IFsrmQuota : IFsrmQuotaObject
[GuidAttribute("377F739D-9647-4B8E-97D2-5FFCE6D759CD")]
public interface class IFsrmQuota : IFsrmQuotaObject
[<GuidAttribute("377F739D-9647-4B8E-97D2-5FFCE6D759CD")>]
type IFsrmQuota =
interface
interface IFsrmQuotaObject
end
<GuidAttribute("377F739D-9647-4B8E-97D2-5FFCE6D759CD")>
Public Interface IFsrmQuota
Inherits IFsrmQuotaObject
Properties
Name | Description | |
---|---|---|
Description | Gets and sets the Description property. |
|
id | Gets the id property. |
|
MatchesSourceTemplate | Returns true if the properties of this instance match the source template and false if they don't. |
|
Path | Gets the Path property. |
|
QuotaFlags | Gets and sets the QuotaFlags property. |
|
QuotaLimit | Gets and sets the QuotaLimit property. |
|
QuotaPeakUsage | Retrieves the highest amount of disk space usage charged to this quota. |
|
QuotaPeakUsageTime | Retrieves the date and time that the QuotaPeakUsage property was set. |
|
QuotaUsed | Retrieves the current amount of disk space usage charged to this quota. |
|
SourceTemplateName | Gets the SourceTemplateName property. |
|
Thresholds | Gets the Thresholds property. |
|
UserAccount | Gets the UserAccount property. |
|
UserSid | Gets the UserSid property. |
Methods
Name | Description | |
---|---|---|
AddThreshold(Int32) | Adds a threshold to the quota object. |
|
ApplyTemplate(String) | Applies the property values of the specified quota template to this 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 on the quota object. |
|
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 of the quota object. |
|
ModifyThreshold(Int32, Int32) | Changes the threshold of the quota object. |
|
RefreshUsageProperties() | Refreshes this object's quota usage information from the current information in FSRM. |
|
ResetPeakUsage() | Resets the peak usage of this quota to the current usage. |
Remarks
To create this interface, call the CreateQuota method.The following methods return this interface:
A quota limits the amount of data that the system or any user can store in a directory.
See Also
Return to top