Condividi tramite


SPQuery Members

Include Protected Members
Include Inherited Members

Represents a query in a list view.

The SPQuery type exposes the following members.

Constructors

  Name Description
Public method SPQuery() Initializes a new instance of the SPQuery class.
Public method SPQuery(SPView) Initializes a new instance of the SPQuery class by using the specified view.

Top

Properties

  Name Description
Public property AutoHyperlink Gets or sets a Boolean value that specifies whether text that resembles a hyperlink within the data set returned by the query is automatically formatted as a hyperlink.
Public property CalendarDate Gets or sets the calendar date of the SharePoint site.
Public property DatesInUtc Gets or sets a Boolean value that specifies whether the query returns dates in Coordinated Universal Time (UTC) format.
Public property ExpandRecurrence Gets or sets a Boolean value that specifies whether to expand recurrent events in the calendar view.
Public property ExpandUserField Gets or sets a Boolean value that specifies whether to use special rendering for user field values that makes them include the login name, e-mail address, Session Initiation Protocol (SIP) address, and title, when present, which causes a user field to behave as a multilookup field.
Public property Folder Gets or sets the folder within a document library from which to return items in the query.
Public property IncludeAllUserPermissions Gets or sets a Boolean value that specifies whether the query returns security information, including access control lists and scopes.
Public property IncludeAttachmentUrls Gets or sets a Boolean value that specifies whether to include the encoded full URLs, delimited by ;#, of attachments to each item.
Public property IncludeAttachmentVersion Gets or sets a Boolean value that specifies whether to include the unique identifier and version number, delimited by ;#, of attachments to each item.
Public property IncludeMandatoryColumns Gets or sets a Boolean value that specifies whether fields that are required for calculated fields are returned in the query. Mandatory columns include, for example, owsHiddenVersion, dependent fields, and required fields.
Public property IncludePermissions Gets or sets a Boolean value that specifies whether the query returns security information.
Public property IndividualProperties Gets or sets a Boolean value that specifies whether to include properties in the query.
Public property ItemIdQuery Gets or sets a Boolean value that specifies whether query selectivity is based on list item ID.
Public property Joins Gets or sets the Joins element section of the query including all its child elements.
Public property ListItemCollectionPosition Gets or sets an object that is used to obtain the next set of rows in a paged view of a list.
Public property MeetingInstanceId Gets or sets the ID that specifies the meeting instance from which to return information in the query.
Public property Method Gets or sets the outer XML for the method portion of a query of an external list.
Public property ProjectedFields Gets or sets the ProjectedFields element XML of the query, which itemizes fields from joined foreign lists so that they can be referenced in the Where element and the ViewFields element.
Public property Query Gets or sets the inner XML used in the query.
Public property QueryThrottleMode Gets or sets a value that indicates the throttling mode to be applied to the query.
Public property RecurrenceOrderBy Gets or sets a Boolean value that specifies whether the sort order used to display items in an application that interacts with a SharePoint list remains the same as the sort order used in the browser.
Public property RowLimit Gets or sets a limit for the number of items returned in the query per page.
Public property ViewAttributes Gets or sets the attributes of the view used in the query.
Public property ViewFields Gets or sets the view fields that are returned by the query.
Public property ViewFieldsOnly Gets or sets a value that indicates whether to retrieve only the fields specified in the ViewFields property.
Public property ViewXml Gets or sets the XML schema that defines the view.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

See Also

Reference

SPQuery Class

Microsoft.SharePoint Namespace