| 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>"
)
Public Function GetDocumentLibraryByTitle (
title As String,
Optional camlQuery As String = "<View><Query><OrderBy><FieldRef Name='ID' /></OrderBy></Query></View>"
) As SharePointDocumentLibrary
public:
SharePointDocumentLibrary^ GetDocumentLibraryByTitle(
String^ title,
String^ camlQuery = L"<View><Query><OrderBy><FieldRef Name='ID' /></OrderBy></Query></View>"
)
member GetDocumentLibraryByTitle :
title : string *
?camlQuery : string
(* Defaults:
let _camlQuery = defaultArg camlQuery "<View><Query><OrderBy><FieldRef Name='ID' /></OrderBy></Query></View>"
*)
-> SharePointDocumentLibrary
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:
SharePointDocumentLibraryA 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