다음을 통해 공유


FsrmQuotaManagerClass.CreateQuota Method (String)

 

Creates a quota for the specified directory.

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

Syntax

public virtual IFsrmQuota CreateQuota(
    string Path
)
public:
virtual IFsrmQuota^ CreateQuota(
    String^ Path
)
abstract CreateQuota : 
        Path:string -> IFsrmQuota
override CreateQuota : 
        Path:string -> IFsrmQuota
Public Overridable Function CreateQuota (
    Path As String
) As IFsrmQuota

Parameters

  • Path
    Type: System.String

    The local directory path to which the quota applies. The string is limited to 260 characters.

Return Value

Type: Microsoft.Storage.IFsrmQuota

Returns a IFsrmQuota interface to the newly created quota object. Use this interface to define the quota. To add the quota to FSRM, call IFsrmQuota::Commit method..

Implements

IFsrmQuotaManager.CreateQuota(String)

Remarks

The quota applies to the directory and all its subdirectories (recursively). Quotas specified on directories higher in the directory tree further restrict the quota specified on this directory.

If the quota specifies the FsrmQuotaFlags_Enforce quota flag, the file IO is blocked when the quota is exceeded, but there are no actions taken, such as a command being run or a report generated. To perform actions when the quota is exceeded, create a threshold and specify an action to run. To perform the action when the quota is exceeded, set the threshold to 100 (percent).

See Also

IFsrmQuotaManagerEx
FsrmQuotaManager
FsrmQuotaManagerClass Class
Microsoft.Storage Namespace

Return to top