Поделиться через


ApplicationServiceContext.ApplicationInitParams Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the initialization parameters specified by the host Web page when embedding the Silverlight plug-in.

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

Syntax

'Declaration
Public ReadOnly Property ApplicationInitParams As Dictionary(Of String, String)
public Dictionary<string, string> ApplicationInitParams { get; }

Property Value

Type: System.Collections.Generic.Dictionary<String, String>
The initialization parameters as a dictionary of key/value pairs.

Remarks

An application extension service can use the ApplicationInitParams property to get the application initialization parameters as specified by the Web page that hosts the Silverlight plug-in. For more information about hosting the plug-in, see Integrating Silverlight with a Web Page.

Initialization parameters are not available to out-of-browser applications. However, you can use isolated storage to save initialization parameters before a user installs an application for out-of-browser use. You can then retrieve the parameters from isolated storage when the application launches outside the browser. For more information, see How to: Specify and Retrieve Custom Initialization Parameters.

For more information about extension services, see Application Extension Services.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

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