Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
Silverlight 3
Application Class
 ApplicationLifetimeObjects Property
Collapse All/Expand All Collapse All
.NET Framework Class Library for Silverlight
Application..::.ApplicationLifetimeObjects Property

Gets the application extension services that have been registered for this application.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
Public ReadOnly Property ApplicationLifetimeObjects As IList
    Get
Visual Basic (Usage)
Dim instance As Application
Dim value As IList

value = instance.ApplicationLifetimeObjects
C#
public IList ApplicationLifetimeObjects { get; }
XAML Property Element Usage
<Application>
  <Application.ApplicationLifetimeObjects>
    oneOrMoreServiceElements
  </Application.ApplicationLifetimeObjects>
</Application>

XAML Values

oneOrMoreServiceElements

One or more object elements, each of which creates and defines an IApplicationService instance. Each element requires an XML namespace prefix mapped to the namespace and assembly where the service is defined.

Property Value

Type: System.Collections..::.IList
The registered services.

Application extension services provide a way to extend the Silverlight application model without requiring specialized Application subclasses. Applications can continue to inherit the Application class directly, and can add extensions by populating the ApplicationLifetimeObjects list. Applications can do this in the class constructor or in the application XAML.

Application extension services implement the IApplicationService interface and optionally the IApplicationLifetimeAware interface. These interfaces define access points to the application lifetime events.

The order of the services in the ApplicationLifetimeObjects list dictates the order in which the services are initialized. This is also the order in which the services receive application lifetime event notifications. The services are shut down in the opposite order. The guaranteed ordering enables services to fulfill complex dependencies in the application and in other services.

For more information, see Application Extension Services.

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker