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)
Available in Sandboxed Solutions: No

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