Partager via


CreateFMJNotification method of the MSFT_FSRMFMJNotification class

Creates an instance of the MSFT_FSRMFMJNotification class representing a file management job notification.

Syntax

uint64 CreateFMJNotification(
  [in]  uint32                         Days,
  [in]  MSFT_FSRMFMJNotificationAction Action[],
  [out] MSFT_FSRMFMJNotification       Notification
);

Parameters

Days [in]

A unique notification value to add. The value cannot be less than zero.

The Days parameter specifies the number of days before the file is to expire. If the appropriate conditions set in the job are met, notification will be sent to the user to let them know that the file is about to expire. FSRM uses the actions associated with the notification value to determine how the user is notified.

Action [in]

An array of MSFT_FSRMFMJNotificationAction instance that represent the actions that the file management job will perform when the notification happens.

Notification [out]

Returns an instance of the MSFT_FSRMFMJNotification class representing the created file management job notification.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\FSRM
MOF
MSFT_FSRM.mof
DLL
SrmSvc.dll

See also

MSFT_FSRMFMJNotification

MSFT_FSRMFMJNotificationAction

MSFT_FSRMFileManagementJob