ISharePointListServiceGetListItems Method |
Gets a selection of items of a SharePoint list identified by its title. Keeping FieldName or FieldType unspecified causes all items (optionally restricted by QueryInnerXml) to be selected. Keeping QueryInnerXml unspecified causes all list items to be selected (the listItemsSelection still applies).
The listItemsSelection parameter is provided just for comfortability reason and produces a query similar to the following
<Query> <And> QueryInnerXml <Eq><FieldRef Name="FieldName" /><Value Type="FieldType">FieldValue</Value></Eq> </And> </Query>
The DataSet has an empty table (with no columns) if no list items are retrieved.
Namespace: CMS.SharePoint
DataSet GetListItems( string listTitle, string folderServerRelativeUrl = null, SharePointView view = null, SharePointListItemsSelection listItemsSelection = null )
Exception | Condition |
---|---|
SharePointServerException | Thrown whenever server error occurs. |
WebException | Thrown when error related to network or protocol occurs. |
SharePointConnectionNotSupportedException | Thrown when given connectionData contains unsupported authentication mode or invalid URL. |
SharePointCCSDKException | Thrown when identity client library "msoidcliL.dll" needed for SharePoint Online authentication is missing. See documentation for details. |
Exception | Thrown in case of unexpected error condition. |