共用方式為


ListViewWebPart.ViewType property

取得或設定檢視來顯示此 Web 組件中的型別。

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
<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; }

Property value

Type: Microsoft.SharePoint.WebPartPages.ViewType
來自Microsoft.SharePoint.WebPartPages.ViewType列舉值。

備註

ViewType屬性是讀取/寫入。

請參閱

參照

ListViewWebPart class

ListViewWebPart members

Microsoft.SharePoint.WebPartPages namespace