다음을 통해 공유


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

  • 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