Click or drag to resize
Galactic API

SharePointClientGetDocumentLibraryByTitle Method

Populates a SharePointDocumentLibrary object from the contents of SharePoint Document Library with the supplied title on the server.

Namespace:  Galactic.SharePoint
Assembly:  Galactic.SharePoint (in Galactic.SharePoint.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public SharePointDocumentLibrary GetDocumentLibraryByTitle(
	string title,
	string camlQuery = "<View><Query><OrderBy><FieldRef Name='ID' /></OrderBy></Query></View>"
)

Parameters

title
Type: SystemString
The title of the document library with the documents to retrieve.
camlQuery (Optional)
Type: SystemString
Optional: The XML representing the CAML query you'd like to make of the documents in the document library. If not supplied, all documents will be retrieved.

Return Value

Type: SharePointDocumentLibrary
A SharePointDocumentLibrary representing the library on the server, or null if the library could not be found, the user does not have sufficient permissions to access the library, or library's contents could otherwise not be retrieved.
See Also