ScheduledTaskAgent Methods

July 28, 2014

The ScheduledTaskAgent type exposes the following members.

  NameDescription
Protected method Abort Informs the operating system that the agent is unable to perform its intended task and that it should not be launched again until the foreground application mitigates the blocking issue and reenables the agent. (Inherited from BackgroundAgent.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method NotifyComplete Informs the operating system that the agent has completed its intended task for the current invocation of the agent. (Inherited from BackgroundAgent.)
Protected method NotifyCompleteWithResult Informs the operating system that the agent has completed its intended task for the current invocation of the agent. Call this method after successfully handling an invocation with a result. (Inherited from BackgroundAgent.)
Protected method OnCancel Not supported. (Overrides BackgroundAgent.OnCancel().)
Protected method OnInvoke Called when the Scheduled Task is executed. Override this method and provide the code that should execute in the background.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Show:
© 2014 Microsoft