Compartilhar via


SPQuery Constructor (SPView)

Initializes a new instance of the SPQuery class by using the specified view.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub New ( _
    view As SPView _
)
'Usage
Dim view As SPView

Dim instance As New SPQuery(view)
public SPQuery(
    SPView view
)

Parameters

Remarks

This method saves the value of the Method property of view in the Method property, the value of the Query property of view in the Query property, and the value of the RowLimit property of view in the RowLimit property.

See Also

Reference

SPQuery Class

SPQuery Members

SPQuery Overload

Microsoft.SharePoint Namespace