Partilhar via


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)
Available in Sandboxed Solutions: No

Syntax

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

value = instance.CustomInitParameters

instance.CustomInitParameters = value
[WebBrowsableAttribute(true)]
[PersonalizableAttribute(PersonalizationScope.Shared)]
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