IFsrmFileManagementJob::CreateNotificationAction method (fsrmreports.h)

[This method is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMFileManagementJob class.]

Creates a notification action and associates it with the notification value.

Syntax

HRESULT CreateNotificationAction(
  [in]  long           days,
  [in]  FsrmActionType actionType,
  [out] IFsrmAction    **action
);

Parameters

[in] days

The notification value to associate with the action.

[in] actionType

The action to perform when the notification period is reached, enumerated by the FsrmActionType enumeration.

Note  The FsrmActionType_Report type is not valid for this method.
 

FsrmActionType_EventLog (1)

Log an event to the Application event log.

FsrmActionType_Email (2)

Send an email message.

FsrmActionType_Command (3)

Execute a command or script.

[out] action

An 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.

Return value

The method returns the following return values.

Remarks

You can specify up to three unique actions for each notification value.

The action is deleted when the notification is deleted.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header fsrmreports.h
DLL SrmSvc.dll

See also

IFsrmFileManagementJob

IFsrmFileManagementJob::EnumNotificationActions

MSFT_FSRMFileManagementJob