Share via


SPList.DefaultView Property

Gets the default view for the list.

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

Syntax

'Declaration
Public ReadOnly Property DefaultView As SPView
    Get
'Usage
Dim instance As SPList
Dim value As SPView

value = instance.DefaultView
public SPView DefaultView { get; }

Property Value

Type: Microsoft.SharePoint.SPView
An SPView object that represents the default view.

See Also

Reference

SPList Class

SPList Members

Microsoft.SharePoint Namespace