IFsrmFileScreen.CreateAction Method (_FsrmActionType)
Creates an action for this file screen object. The action is triggered when a file violates the file screen.
Namespace: Microsoft.Storage
Assembly: srmlib (in srmlib.dll)
Syntax
IFsrmAction CreateAction(
_FsrmActionType ActionType
)
IFsrmAction^ CreateAction(
_FsrmActionType ActionType
)
abstract CreateAction :
ActionType:_FsrmActionType -> IFsrmAction
Function CreateAction (
ActionType As _FsrmActionType
) As IFsrmAction
Parameters
ActionType
Type: Microsoft.Storage._FsrmActionTypeThe type of action to create. 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 based on the action type that you specified in the ActionType parameter. For example, if ActionType is FsrmActionType_Command, query the interface for the IFsrmActionCommand interface.
Implements
IFsrmFileScreenBase.CreateAction(_FsrmActionType)
Remarks
You can specify up to four unique actions for each file screen.
The action is deleted if the file screen is deleted.
For an example, see Performing Action Based on File Screen Violations.
See Also
IFsrmFileScreen Interface
Microsoft.Storage Namespace
Return to top