获取或设置用于表示目录中的 Web 部件的图像的 URL。
命名空间: Microsoft.SharePoint.WebPartPages
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<WebPartStorageAttribute(Storage.None)> _
Public Overrides Property CatalogIconImageUrl As String
Get
Set
用法
Dim instance As WebPart
Dim value As String
value = instance.CatalogIconImageUrl
instance.CatalogIconImageUrl = value
[WebPartStorageAttribute(Storage.None)]
public override string CatalogIconImageUrl { get; set; }
属性值
类型:System.String
包含 URL string 。默认值是String.Empty。
实现
备注
CatalogIconImageUrl属性提供了一种方法与如添加 Web 部件对话框中的目录中的 Web 部件控件的项相关联的小图像。为了确保主题一致性,应用程序开发人员通常会使此图标类似于表示 Web 部件自己标题栏 ( TitleIconImageUrl属性中引用的图像) 中的控件的图像。
在代码中的控件或以声明方式 Web 部件控件说明文件 (.webpart) 的标记中,您可以以编程方式设置属性的值。