SPView.Type Property

Gets the type of the view.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableConstraintAttribute(FixedId := "a", Type := ClientCallableConstraintType.RegularExpression,  _
    Value := "HTML|GRID|CALENDAR|RECURRENCE|CHART|GANTT")> _
<ClientCallableAttribute(Name := "ViewType")> _
Public ReadOnly Property Type As String
    Get
'Usage
Dim instance As SPView
Dim value As String

value = instance.Type
[ClientCallableConstraintAttribute(FixedId = "a", Type = ClientCallableConstraintType.RegularExpression, 
    Value = "HTML|GRID|CALENDAR|RECURRENCE|CHART|GANTT")]
[ClientCallableAttribute(Name = "ViewType")]
public string Type { get; }

Property Value

Type: System.String
A string that specifies an SPViewCollection.SPViewType value.

See Also

Reference

SPView Class

SPView Members

Microsoft.SharePoint Namespace