Share via


SPList.DefaultView property

Gets the default view for the list.

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

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