Export (0) Print
Expand All

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)

public SPView GetDefaultViewForContentType(
	SPContentTypeId id
)

Parameters

id
Type: Microsoft.SharePoint.SPContentTypeId

The content type identifier (ID).

Return value

Type: Microsoft.SharePoint.SPView
The view.

This method gets the default view from the Views property.

Show:
© 2014 Microsoft