.NET Framework Class Library for Silverlight
SilverlightHost..::.InitParams Property

Gets the initialization parameters that were passed as part of HTML initialization of a Silverlight plug-in.

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

Visual Basic (Declaration)
Public ReadOnly Property InitParams As IDictionary(Of String, String)
    Get
Visual Basic (Usage)
Dim instance As SilverlightHost
Dim value As IDictionary(Of String, String)

value = instance.InitParams
C#
public IDictionary<string, string> InitParams { get; }

Property Value

Type: System.Collections.Generic..::.IDictionary<(Of <(String, String>)>)
The set of initialization parameters, as a dictionary with key strings and value strings.
Remarks

The initialization parameters are passed as the initParams parameter when you embed the Silverlight plug-in in a Web page. For more information, see Integrating Silverlight with a Web Page.

The input format of this parameter starts as a single string with individual parameters delimited using a comma (,), and keys delimited from values using an equal sign (=). For example, "key1=value1,key2=value2,key3=value3". The delimiters are processed so that this API can provide them as a dictionary.

You can also access the initialization parameters in a Application..::.Startup event handler through the InitParams property.

Platforms

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

See Also

Reference

Other Resources

Tags :


Page view tracker