SPView Constructor
Initializes a new instance of the SPView class.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)> _
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)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)]
public SPView(
SPList list,
XmlDocument xd
)
Parameters
list
Type: Microsoft.SharePoint.SPListAn SPList object that represents the list.
xd
Type: System.Xml.XmlDocumentA 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.