SilverlightWebPart.CustomInitParameters property

Gets or sets custom initialization properties for the Silverlight application that is being hosted by the Web Part.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(True)> _
Public Property CustomInitParameters As String
    Get
    Set
'Usage
Dim instance As SilverlightWebPart
Dim value As String

value = instance.CustomInitParameters

instance.CustomInitParameters = value
[PersonalizableAttribute(PersonalizationScope.Shared)]
[WebBrowsableAttribute(true)]
public string CustomInitParameters { get; set; }

Property value

Type: System.String
A comma-delimited list of key/value pairs with the pattern “key=value”

Remarks

For example, a location-oriented Silverlight application might need to be given a default city. In the situation, this property would include something like defaultCity=Redmond.

Contrast the use of this property with the CustomProperties property and the customProperties element of External Application XML. Each of the three has a different purpose.

See also

Reference

SilverlightWebPart class

SilverlightWebPart members

Microsoft.SharePoint.WebPartPages namespace