Click or drag to resize
ISharePointListService Interface
Provides access to SharePoint lists.

Namespace: CMS.SharePoint
Assembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 9.0.0
Syntax
C#
public interface ISharePointListService : ISharePointService

The ISharePointListService type exposes the following members.

Methods
  NameDescription
Public methodGetListItems

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.

Public methodGetLists
Gets all lists on SharePoint server. The DataSet has an empty table (with possibly no columns) if no lists are retrieved.
Public methodIsConnectionSupported
Tells you whether connection parameters can be used by instantiated SharePoint service implementation (eg. the authentication mode might not be supported).
(Inherited from ISharePointService.)
Top
See Also