WebPart.Description 属性

获取或设置当用户将鼠标指针停留在 Web 部件页或库中的 Web 部件的标题时显示的文本说明。

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

语法

声明
<WebPartStorageAttribute(Storage := Storage.Shared)> _
Public Overrides Property Description As String
    Get
    Set
用法
Dim instance As WebPart
Dim value As String

value = instance.Description

instance.Description = value
[WebPartStorageAttribute(Storage = Storage.Shared)]
public override string Description { get; set; }

属性值

类型:System.String
指定的 Web 部件说明string 。默认值是String.Empty。

实现

IWebPart.Description

备注

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

另请参阅

引用

WebPart 类

WebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间