StopService Method
Collapse the table of content
Expand the table of content

IApplicationService.StopService Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Called by an application in order to stop the application extension service.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

void StopService()

You can implement this method in order to stop your service and perform any necessary clean up.

This method is called after the Application.Exit event. If multiple services are registered, their StopService methods are called in the reverse of the service registration sequence.

You cannot reliably perform asynchronous operations initiated within this method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft