December 03, 2013
Informs the operating system that the agent has completed its intended task for the current invocation of the agent.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Background agents should always call NotifyComplete when their task is complete so that the operating system can allocate unused resources to other background processes. Because this call will end background agent execution, it can be called only once per invocation. This method can be called from any thread, including background threads. Calling NotifyComplete does not affect future scheduled launches of the agent.
If your agent becomes unable to perform its intended tasks, and should not be launched again, you should call Abort() to prevent the agent from being scheduled to run again.