Partager via


IFsrmQuotaBase.CreateThresholdAction Method (Int32, _FsrmActionType)

 

Creates an action and associates it with the specified threshold.

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

Syntax

IFsrmAction CreateThresholdAction(
    int threshold,
    _FsrmActionType ActionType
)
IFsrmAction^ CreateThresholdAction(
    int threshold,
    _FsrmActionType ActionType
)
abstract CreateThresholdAction : 
        threshold:int *
        ActionType:_FsrmActionType -> IFsrmAction
Function CreateThresholdAction (
    threshold As Integer,
    ActionType As _FsrmActionType
) As IFsrmAction

Parameters

  • threshold
    Type: System.Int32

    The threshold with which to associate the action. Specify the same value that you specified when calling the AddThreshold method.

Return Value

Type: Microsoft.Storage.IFsrmAction

Returns a IFsrmAction interface of the newly created action. Query the interface for the action interface that you specified in the actionType parameter. For example, if the action type is FsrmActionType_Command, query the interface for the IFsrmActionCommand interface.

Remarks

You can specify up to four unique actions for each threshold.

The action is deleted if the threshold is deleted.

See Also

IFsrmQuotaBase Interface
Microsoft.Storage Namespace

Return to top