共用方式為


SilverlightWebPart.CustomProperties Property

Gets or sets custom properties that the Silverlight application stores in the Web Part for reuse.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

value = instance.CustomProperties

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

Property Value

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

Remarks

This property is written to, and read from, code developed with the Silverlight client object model. The Silverlight application can use the property to store information it will reuse on subsequent invocations. For example, the application could prompt the user to specify his or her postal code, which it then stores in this property (PostalCode=4G5-789). The next time the user opens the page with the Silverlight Web Part, the application can automatically read and use this information.

Contrast the use of this property with the CustomInitParameters 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