IFsrmAutoApplyQuota Interface
Used to automatically add the quota to new and existing subdirectories of the directory on which the automatic quota is applied.
Namespace: Microsoft.Storage
Assembly: srmlib (in srmlib.dll)
Syntax
[GuidAttribute("F82E5729-6ABA-4740-BFC7-C7F58F75FB7B")]
public interface IFsrmAutoApplyQuota : IFsrmQuotaObject
[GuidAttribute("F82E5729-6ABA-4740-BFC7-C7F58F75FB7B")]
public interface class IFsrmAutoApplyQuota : IFsrmQuotaObject
[<GuidAttribute("F82E5729-6ABA-4740-BFC7-C7F58F75FB7B")>]
type IFsrmAutoApplyQuota =
interface
interface IFsrmQuotaObject
end
<GuidAttribute("F82E5729-6ABA-4740-BFC7-C7F58F75FB7B")>
Public Interface IFsrmAutoApplyQuota
Inherits IFsrmQuotaObject
Properties
Name | Description | |
---|---|---|
Description | Gets and sets the Description property. |
|
ExcludeFolders | Retrieves or sets an array of immediate subdirectories to exclude from the automatic quota. |
|
id | Gets the id property. |
|
MatchesSourceTemplate | Gets the MatchesSourceTemplate property. |
|
Path | Gets the Path property. |
|
QuotaFlags | Gets and sets the QuotaFlags property. |
|
QuotaLimit | Gets and sets the QuotaLimit property. |
|
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 automatic quota object. |
|
ApplyTemplate(String) | Applies the property values of the specified quota template to this automatic quota object. |
|
Commit() | Saves the automatic quota object in the server's list of objects. |
|
CommitAndUpdateDerived(_FsrmCommitOptions, _FsrmTemplateApplyOptions) | Saves the quota and then applies any changes to the derived quotas. |
|
CreateThresholdAction(Int32, _FsrmActionType) | Creates an action and associates it with the specified threshold on the automatic quota object. |
|
Delete() | Removes the automatic quota object from the server's list of objects. |
|
DeleteThreshold(Int32) | Deletes a threshold from the automatic quota object. |
|
EnumThresholdActions(Int32) | Enumerates all the actions for the specified threshold of the automatic quota object. |
|
ModifyThreshold(Int32, Int32) | Changes the threshold of the automatic quota object. |
Remarks
To create an automatic quota, call the CreateAutoApplyQuota method.
To retrieve this interface to an existing automatic quota, call one of the following methods:
To change the properties of an automatic quota, change the properties of the template from which the automatic quota is derived. Then call the CommitAndUpdateDerived method to update the properties of the automatic quotas and the quotas that derive from the automatic quota.
If any quota under the automatic quota's path was changed to a different template, it will not be changed to the automatic quota's new settings until you call the CommitAndUpdateDerived method.
Changes made to the automatic quota are reflected in new quotas only after the automatic quota is committed.
See Also
CreateQuota
Microsoft.Storage Namespace
Return to top