ISharePointListServiceGetListItems Method |
Gets (optionally) a selection of list items of SharePoint list identified by its title. Keeping listItemsSelection.FieldName or listItemsSelection.FieldType unspecified causes all items (optionally restricted by camlQueryString) to be selected. Keeping camlQueryString unspecified causes all list items to be selected (the listItemsSelection still applies).
The listItemsSelection parameter is provided just for comfortability reason and the same can be achieved using
<Query> <And> camlQueryString <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. |