December 03, 2013
An agent that keeps the background process alive while the foreground app is active.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Thetype exposes the following members.
|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.)|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|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.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|NotifyComplete||Informs the operating system that the agent has completed its intended task for the current invocation of the agent. (Inherited from BackgroundAgent.)|
|OnCancel||Called by the operating system to alert a background agent that it is going to be put into a dormant state or terminated. (Inherited from BackgroundAgent.)|
|OnLaunched||Called when the is launched as a result of a call to Launch().|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
This agent is launched when the foreground app calls Launch(). It is terminated when the foreground application leaves the foreground. This agent is used to maintain the background process so that it will be bootstrapped and ready when the user initiates a call in the foreground app.
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
Windows Phone 8
For more info, see App capabilities and hardware requirements for Windows Phone.