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.Int32The threshold with which to associate the action. Specify the same value that you specified when calling the AddThreshold method.
ActionType
Type: Microsoft.Storage._FsrmActionTypeThe action to perform when the threshold is reached or exceeded. For possible values, see the _FsrmActionType enumeration.
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