Click or drag to resize
SharePointLibraryInfoProviderSynchronizeSharePointLibrary Method
Schedules the SharePoint library synchronization for an immediate run and returns. Use GetSharePointLibrarySynchronizationState(SharePointLibraryInfo) to see whether the synchronization is in the scheduler's queue (NextRunTime is from the past), is running (IsRunning is set), or will be run (NextRunTime is in the future).

Namespace: CMS.SharePoint
Assembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 13.0.131
Syntax
C#
public static void SynchronizeSharePointLibrary(
	SharePointLibraryInfo libraryInfo
)

Parameters

libraryInfo
Type: CMS.SharePointSharePointLibraryInfo
SharePoint library to be synchronized immediately.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when libraryInfo is null.
InvalidOperationExceptionThrown when the library can not be scheduled for synchronization (the scheduler's task is missing).
See Also