SilverlightPlugin.InitParameters Property

Gets or sets an optional set of user-defined initialization parameters.

Namespace:  System.Web.UI.SilverlightControls
Assembly:  System.Web.Silverlight (in System.Web.Silverlight.dll)

Syntax

'Declaration
Public Overridable Property InitParameters As String
    Get
    Set
'Usage
Dim instance As SilverlightPlugin
Dim value As String

value = instance.InitParameters

instance.InitParameters = value
public virtual string InitParameters { get; set; }

Property Value

Type: System.String
The parameters.

Remarks

If parameters are included, they are typically in comma-delimited pairs and are available as a dictionary object in a Silverlight 2 startup event. These parameters are not used in a Silverlight 1.0-based application.

If an action on an .aspx page causes a postback to occur, the Silverlight plug-in will start again with its content specified in the Source property. The current value of the InitParameters property is sent to the Silverlight plug-in. This enables you to change the InitParameters property before a postback occurs.

The Silverlight 2 application specified in the Source property can access the initialization parameters specified in the InitParameters property in the StartupEventArgs parameter of the Silverlight Application Startup event.

Platforms

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

See Also

Reference

SilverlightPlugin Class

SilverlightPlugin Members

System.Web.UI.SilverlightControls Namespace