Share via


SPList.GetDefaultViewForContentType method

Returns the default view of list data that is used by the specified content type.

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

Syntax

public SPView GetDefaultViewForContentType(
    SPContentTypeId id
)

Parameters

Return value

Type: Microsoft.SharePoint.SPView
The view.

Remarks

This method gets the default view from the Views property.

See also

Reference

SPList class

SPList members

Microsoft.SharePoint namespace