次の方法で共有


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

Gets and sets the Description property.

System_CAPS_pubproperty id

Gets the id property.

System_CAPS_pubproperty MatchesSourceTemplate

Returns true if the properties of this instance match the source template and false if they don't.

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 QuotaPeakUsage

Retrieves the highest amount of disk space usage charged to this quota.

System_CAPS_pubproperty QuotaPeakUsageTime

Retrieves the date and time that the QuotaPeakUsage property was set.

System_CAPS_pubproperty QuotaUsed

Retrieves the current amount of disk space usage charged to this quota.

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 quota object.

System_CAPS_pubmethod ApplyTemplate(String)

Applies the property values of the specified quota template to this 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 on the quota object.

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 of the quota object.

System_CAPS_pubmethod ModifyThreshold(Int32, Int32)

Changes the threshold of the quota object.

System_CAPS_pubmethod RefreshUsageProperties()

Refreshes this object's quota usage information from the current information in FSRM.

System_CAPS_pubmethod 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:

  1.  EnumEffectiveQuotas

  2. EnumQuotas

  3. GetQuota

  4.  GetRestrictiveQuota 

A quota limits the amount of data that the system or any user can store in a directory.

See Also

Microsoft.Storage Namespace

Return to top