StartService Method
Collapse the table of content
Expand the table of content

IApplicationService.StartService 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 initialize the application extension service.

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

void StartService(
	ApplicationServiceContext context
)

Parameters

context
Type: System.Windows.ApplicationServiceContext
Provides information about the application state.

You can implement this method in order to start your service and initialize any necessary resources.

This method is called for each registered application service before the Application.Startup event. If multiple services are registered, their StartService methods are called in the same order in which the services are registered.

The context parameter provides access to the application initialization parameters as specified in the host Web page.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft