Table of Contents

Class WindowsScheduler

Namespace
Dynamicweb.Scheduling
Assembly
Dynamicweb.Scheduling.dll
Provides methods an properties for managing Windows Scheduled Tasks service.
public class WindowsScheduler
Inheritance
WindowsScheduler
Inherited Members

Methods

EnsureScheduler(string, string, string)

[Obsolete("Use EnsureSchedulerIsRunning instead.")]
public static void EnsureScheduler(string user, string pwd, string domain)

Parameters

user string
pwd string
domain string

EnsureSchedulerIsRunning(string, string, string)

Ensures that the Windows Scheduled Task is running.
public static void EnsureSchedulerIsRunning(string user, string password, string domain)

Parameters

user string
Name of the user that has permissions to manage Scheduled Tasks.
password string
User password.
domain string
Domain that the user belogs to.

FindTaskLastRunDate(string, string, string)

Retrieves the scheduled task last run time if it was found.
public static DateTime? FindTaskLastRunDate(string user, string password, string domain)

Parameters

user string
Name of the user that has permissions to manage Scheduled Tasks.
password string
User password.
domain string
Domain that the user belogs to.

Returns

DateTime?
Date when Windows Scheduled Task was last executed or null if the task cannot be found.

FindTaskLastRunTime(string, string, string)

Retrieves the scheduled task last run time if it was found.
[Obsolete("Use FindTaskLastRunDate instead")]
public static DateTime? FindTaskLastRunTime(string user, string password, string domain)

Parameters

user string
Name of the user that has permissions to manage Scheduled Tasks.
password string
User password.
domain string
Domain that the user belogs to.

Returns

DateTime?
Date when Windows Scheduled Task was last executed or null if the task cannot be found.

ShutdownScheduler(string, string, string)

[Obsolete("Use StopScheduler instead.")]
public static void ShutdownScheduler(string user, string pwd, string domain)

Parameters

user string
pwd string
domain string

StopScheduler(string, string, string)

Shuts down the Windows Scheduled Task.
public static void StopScheduler(string user, string password, string domain)

Parameters

user string
Name of the user that has permissions to manage Scheduled Tasks.
password string
User password.
domain string
Domain that the user belogs to.
To top