Exago .NET API Documentation
SetRecurrencePatternOnce Method
Example 
WebReports.Api.Scheduler Namespace > ReportScheduler Class : SetRecurrencePatternOnce Method
ReportScheduleInfo to be edited
Boolean determining whether or not the report should be executed now or at another date
Optional parameter. If isImmediate is false, this will be used to determine the date when the report will be executed
Convenience method that sets the provided ReportScheduleInfo's RecurrencePattern to Once with the provided parameters.
Syntax
public ReportScheduleInfoOnce SetRecurrencePatternOnce( 
   ReportScheduleInfo scheduleInfo,
   System.bool isImmediate,
   System.Nullable<DateTime> onceDate
)

Parameters

scheduleInfo
ReportScheduleInfo to be edited
isImmediate
Boolean determining whether or not the report should be executed now or at another date
onceDate
Optional parameter. If isImmediate is false, this will be used to determine the date when the report will be executed

Return Value

ReportScheduleInfoOnce Modified ReportScheduleInfo with the Recurrence pattern set to once
Example
Change a schedule to occur immediately.
var x = reportScheduler.GetReportScheduleInfoByJobId(“jobId here!”);
x = reportScheduler.SetRecurrencePatternOnce(x, true);
reportScheduler.UpdateExistingSchedule(x, “jobId here!”);
See Also

Reference

ReportScheduler Class
ReportScheduler Members