Поделиться через


IFsrmQuotaManager.EnumQuotas Method (String, _FsrmEnumOptions)

 

Enumerates the quotas for the specified directory and any quotas associated with its subdirectories (recursively).

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

Syntax

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

Parameters

  • Path
    Type: System.String

    The local directory path that is associated with the quota that you want to enumerate. The string is limited to 260 characters.If the path ends with "\*", retrieve all 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 quota for the path and all quotas associated with the immediate subdirectories of the path (recursively).If the path does not end in "\*" or "\...", retrieve the quota for the path only.If path is null or empty, the method returns all quotas.

Return Value

Type: Microsoft.Storage.IFsrmCommittableCollection

Returns a IFsrmCommittableCollection interface that contains a collection of the quotas.

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

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

See Also

IFsrmQuotaManagerEx
FsrmQuotaManager
IFsrmQuotaManager Interface
Microsoft.Storage Namespace

Return to top