Share via


SPView constructor

Initializes a new instance of the SPView class.

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

Syntax

'Declaration
Public Sub New ( _
    list As SPList, _
    xd As XmlDocument _
)
'Usage
Dim list As SPList
Dim xd As XmlDocument

Dim instance As New SPView(list, xd)
public SPView(
    SPList list,
    XmlDocument xd
)

Parameters

  • xd
    Type: System.Xml.XmlDocument

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

Remarks

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

See also

Reference

SPView class

SPView members

Microsoft.SharePoint namespace