Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetDefaultViewForContentType method

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:
© 2015 Microsoft