Share via


SPWebPartManager.CreateWebPartFromList method

Creates a new Web Part that views a specified list.

Overload list

  Name Description
Public methodStatic member CreateWebPartFromList(SPList) Creates a new Web Part that views a specified list.
Public methodStatic member CreateWebPartFromList(SPList, Boolean) Creates a new Web Part that views a specified list and optionally forces selection of the ListViewWebPart class for the default view of a calendar list.

Top

See also

Reference

SPWebPartManager class

SPWebPartManager members

Microsoft.SharePoint.WebPartPages namespace