Click or drag to resize
SharePointServicesGetServiceIService Method
Gets implementation of SharePoint service suitable for version specified in connectionData. The service uses given connectionData.

Namespace: CMS.SharePoint
Assembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 10.0.0
Syntax
C#
public static IService GetService<IService>(
	SharePointConnectionData connectionData
)
where IService : ISharePointService

Parameters

connectionData
Type: CMS.SharePointSharePointConnectionData
Data (credentials etc.) needed to establish connection to SharePoint server

Type Parameters

IService
Type of service to get implementation for

Return Value

Type: IService
Service implementation
Exceptions
ExceptionCondition
SharePointServiceFactoryNotSupportedExceptionThrown when no service factory for specified SharePoint version found.
SharePointServiceNotSupportedExceptionThrown when IService implementation is not available.
SharePointConnectionNotSupportedExceptionThrown when available service implementation does not support given connectionData.
See Also