SilverlightWebPart.CustomInitParameters 属性

获取或设置的 Silverlight 应用程序正在承载 Web 部件的自定义初始化属性。

命名空间:  Microsoft.SharePoint.WebPartPages
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<PersonalizableAttribute(PersonalizationScope.Shared)> _
<WebBrowsableAttribute(True)> _
Public Property CustomInitParameters As String
    Get
    Set
用法
Dim instance As SilverlightWebPart
Dim value As String

value = instance.CustomInitParameters

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

属性值

类型:System.String
以逗号分隔列表的键/值对使用模式"key=value"

备注

例如,面向位置的 Silverlight 应用程序可能需要获得默认城市。在这种情况,此属性会包括类似defaultCity = 雷德蒙德。

对比使用此属性与CustomProperties属性和 External Application XML 的customProperties元素。三个具有不同的用途。

另请参阅

引用

SilverlightWebPart 类

SilverlightWebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间