Gets SharePoint file identified by server relative URL.
The file may be loaded eagerly or lazily (depends on implementation). In such case an invalid serverRelativeUrl is not reported immediately.
Namespace: CMS.SharePointAssembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- serverRelativeUrl
- Type:
System String
Server relative URL
Return Value
Type: ISharePointFileSharePoint file, or null
Exceptions
| Exception | Condition |
|---|---|
| Thrown when requested file is not present at SharePoint server (and eager loading is used). | |
| CMS.SharePoint SharePointServerException | Thrown whenever server error occurs. |
| Thrown when error related to network or protocol occurs. | |
| CMS.SharePoint SharePointConnectionNotSupportedException | Thrown when given connectionData contains unsupported authentication mode or invalid URL. |
| CMS.SharePoint SharePointCCSDKException | Thrown when identity client library "msoidcliL.dll" needed for SharePoint Online authentication is missing. See documentation for details. |
| Thrown in case of unexpected error condition. |
See Also