Share via


SPViewContext.ViewType property

Gets the view type of the current page that is described by the view context.

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

Syntax

'Declaration
Public Property ViewType As ViewType
    Get
    Friend Set
'Usage
Dim instance As SPViewContext
Dim value As ViewType

value = instance.ViewType
public ViewType ViewType { get; internal set; }

Property value

Type: Microsoft.SharePoint.WebPartPages.ViewType
An ViewType value that indicates the view type.

See also

Reference

SPViewContext class

SPViewContext members

Microsoft.SharePoint namespace