ListViewWebPart.ViewType 属性

获取或设置要在此 Web 部件中显示的视图类型。

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

语法

声明
<WebPartStorageAttribute(Storage.None)> _
Public Property ViewType As ViewType
    Get
    Set
用法
Dim instance As ListViewWebPart
Dim value As ViewType

value = instance.ViewType

instance.ViewType = value
[WebPartStorageAttribute(Storage.None)]
public ViewType ViewType { get; set; }

属性值

类型:Microsoft.SharePoint.WebPartPages.ViewType
从Microsoft.SharePoint.WebPartPages.ViewType枚举的值。

备注

ViewType属性是可读写。

另请参阅

引用

ListViewWebPart 类

ListViewWebPart 成员

Microsoft.SharePoint.WebPartPages 命名空间