Share via


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
System_CAPS_pubproperty Description

Gets and sets the Description property.

System_CAPS_pubproperty ExcludeFolders

Retrieves or sets an array of immediate subdirectories to exclude from the automatic quota.

System_CAPS_pubproperty id

Gets the id property.

System_CAPS_pubproperty MatchesSourceTemplate

Gets the MatchesSourceTemplate property.

System_CAPS_pubproperty Path

Gets the Path property.

System_CAPS_pubproperty QuotaFlags

Gets and sets the QuotaFlags property.

System_CAPS_pubproperty QuotaLimit

Gets and sets the QuotaLimit property.

System_CAPS_pubproperty SourceTemplateName

Gets the SourceTemplateName property.

System_CAPS_pubproperty Thresholds

Gets the Thresholds property.

System_CAPS_pubproperty UserAccount

Gets the UserAccount property.

System_CAPS_pubproperty UserSid

Gets the UserSid property.

Methods

Name Description
System_CAPS_pubmethod AddThreshold(Int32)

Adds a threshold to the automatic quota object.

System_CAPS_pubmethod ApplyTemplate(String)

Applies the property values of the specified quota template to this automatic quota object.

System_CAPS_pubmethod Commit()

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

System_CAPS_pubmethod CommitAndUpdateDerived(_FsrmCommitOptions, _FsrmTemplateApplyOptions)

Saves the quota and then applies any changes to the derived quotas.

System_CAPS_pubmethod CreateThresholdAction(Int32, _FsrmActionType)

Creates an action and associates it with the specified threshold on the automatic quota object.

System_CAPS_pubmethod Delete()

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

System_CAPS_pubmethod DeleteThreshold(Int32)

Deletes a threshold from the automatic quota object.

System_CAPS_pubmethod EnumThresholdActions(Int32)

Enumerates all the actions for the specified threshold of the automatic quota object.

System_CAPS_pubmethod 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