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)

public SPQuery(
	SPView view


Type: Microsoft.SharePoint.SPView

The view of the data.

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.