Skip to content

Latest commit

 

History

History
132 lines (102 loc) · 5.81 KB

nf-fsrmreports-ifsrmfilemanagementjob-addnotification.md

File metadata and controls

132 lines (102 loc) · 5.81 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:fsrmreports.IFsrmFileManagementJob.AddNotification
IFsrmFileManagementJob::AddNotification (fsrmreports.h)
Adds a new notification value (period) to the file management job's list of notifications.
AddNotification
AddNotification method [File Server Resource Manager]
AddNotification method [File Server Resource Manager]
IFsrmFileManagementJob interface
IFsrmFileManagementJob interface [File Server Resource Manager]
AddNotification method
IFsrmFileManagementJob.AddNotification
IFsrmFileManagementJob::AddNotification
fs.ifsrmfilemanagementjob_addnotification
fsrm.ifsrmfilemanagementjob_addnotification
fsrmreports/IFsrmFileManagementJob::AddNotification
fsrm\ifsrmfilemanagementjob_addnotification.htm
fsrm
95b41aa0-44c9-41a2-8132-6aecc4685243
12/05/2018
AddNotification, AddNotification method [File Server Resource Manager], AddNotification method [File Server Resource Manager],IFsrmFileManagementJob interface, IFsrmFileManagementJob interface [File Server Resource Manager],AddNotification method, IFsrmFileManagementJob.AddNotification, IFsrmFileManagementJob::AddNotification, fs.ifsrmfilemanagementjob_addnotification, fsrm.ifsrmfilemanagementjob_addnotification, fsrmreports/IFsrmFileManagementJob::AddNotification
fsrmreports.h
Windows
None supported
Windows Server 2008 R2
SrmSvc.dll
Windows
19H1
IFsrmFileManagementJob::AddNotification
fsrmreports/IFsrmFileManagementJob::AddNotification
c++
APIRef
kbSyntax
COM
SrmSvc.dll
IFsrmFileManagementJob.AddNotification

IFsrmFileManagementJob::AddNotification

-description

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

Adds a new notification value (period) to the file management job's list of notifications.

-parameters

-param days [in]

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

-returns

The method returns the following return values.

-remarks

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.

Notification occurs when the job runs and the following conditions are met:

  • Today is the day when notification should occur.
  • The day when notification should occur is before the next scheduled run time.
Note that it is possible for the user to receive duplicate notifications. For example, the user can receive duplicate notifications if the job is run manually after the notification is sent but on or before the day when the notification should occur.

The FromDate determines when the notification window begins. The following properties determine when the file is to expire:

To associate an action with the notification value, call the IFsrmFileManagementJob::CreateNotificationAction method.

-see-also

IFsrmFileManagementJob

IFsrmFileManagementJob::DeleteNotification

IFsrmFileManagementJob::ModifyNotification

IFsrmFileManagementJob::Notifications

MSFT_FSRMFMJNotification::CreateFMJNotification