共用方式為


IFsrmQuotaManager.EnumAutoApplyQuotas Method (String, _FsrmEnumOptions)

 

Enumerates the automatic quotas that are associated with the specified directory. The enumeration can also include automatic quotas associated with subdirectories (recursively).

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

IFsrmCommittableCollection EnumAutoApplyQuotas(
    string Path = "",
    _FsrmEnumOptions options = _FsrmEnumOptions.FsrmEnumOptions_None
)
IFsrmCommittableCollection^ EnumAutoApplyQuotas(
    String^ Path = "",
    _FsrmEnumOptions options = _FsrmEnumOptions::FsrmEnumOptions_None
)
abstract EnumAutoApplyQuotas : 
        Path:string = "" *
        options:_FsrmEnumOptions = _FsrmEnumOptions.FsrmEnumOptions_None -> IFsrmCommittableCollection
Function EnumAutoApplyQuotas (
    Path As String,
    options As _FsrmEnumOptions
) As IFsrmCommittableCollection

Parameters

  • Path
    Type: System.String

    The local directory path that is associated with the automatic quota that you want to enumerate. The string is limited to 260 characters.If the path ends with "\*", retrieve all automatic quotas associated with the immediate subdirectories of the path (does not include the quota associated with the path).If the path ends with "\...", retrieve the automatic quota for the path and all automatic quotas associated with the immediate subdirectories of the path (recursively).If the path does not end in "\*" or "\...", retrieve the automatic quota for the path only.

Return Value

Type: Microsoft.Storage.IFsrmCommittableCollection

Returns an IFsrmCommittableCollection that contains a collection of the automatic quotas.

Each item of the collection is a VARIANT of type VT_DISPATCH. Query the pdispVal member of the variant for the IFsrmAutoApplyQuota interface.

The collection is empty if the path does not contain quotas.

Remarks

To enumerate quotas that do not automatically apply to the path's subdirectories, call the EnumQuotas method.

See Also

IFsrmQuotaManagerEx
FsrmQuotaManager
IFsrmQuotaManager Interface
Microsoft.Storage Namespace

Return to top