WebPart.PartImageSmall 属性

请注意:此 API 现在已过时。

获取或设置一个 Web 部件的标题中显示的图像文件的 URL。

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

语法

声明
<WebPartStorageAttribute(Storage.Shared)> _
<ObsoleteAttribute("Use TitleIconImageUrl instead.")> _
<HtmlDesignerAttribute("", HtmlEditorBuilderType := "picture")> _
Public Property PartImageSmall As String
    Get
    Set
用法
Dim instance As WebPart
Dim value As String

value = instance.PartImageSmall

instance.PartImageSmall = value
[WebPartStorageAttribute(Storage.Shared)]
[ObsoleteAttribute("Use TitleIconImageUrl instead.")]
[HtmlDesignerAttribute("", HtmlEditorBuilderType = "picture")]
public string PartImageSmall { get; set; }

属性值

类型:System.String
指向的图像文件的 URL。

备注

此属性不能由单个用户进行个性化设置。WebPartStorageAttribute其值为Storage.Shared,用于指定属性存储的所有用户的相同值。只有具有编写的网页权限的用户可以设置该属性。以编程方式,可以将或通过基于 Web 的用户界面,或使用SharePoint Foundation的共享视图中的 Web 部件任务窗格可以将设置 – 兼容的 HTML 编辑器如SharePoint Designer。

另请参阅

引用

WebPart 类

WebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间