SPView constructor

Initializes a new instance of the SPView class.

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

public SPView(
	SPList list,
	XmlDocument xd
)

Parameters

list
Type: Microsoft.SharePoint.SPList

An SPList object that represents the list.

xd
Type: System.Xml.XmlDocument

A System.Xml.XmlDocument object that represents the summary XML of the view.

Use the Clone method on the constructed view object to add the view to collection of views for the list.

Show: