SPViewContext.ViewType property
取得目前頁面中所描述的檢視內容的檢視類型。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property ViewType As ViewType
Get
Friend Set
'用途
Dim instance As SPViewContext
Dim value As ViewType
value = instance.ViewType
public ViewType ViewType { get; internal set; }
Property value
Type: Microsoft.SharePoint.WebPartPages.ViewType
ViewType 值,指出檢視類型。