This documentation is archived and is not being maintained.

SPList.GetDefaultViewForContentType Method

Windows SharePoint Services 3

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)

public SPView GetDefaultViewForContentType(
	SPContentTypeId id
)

Parameters

id
Type: Microsoft.SharePoint.SPContentTypeId
An SPContentTypeId value that represents the content type identifier.

Return Value

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