| ISharePointFileServiceGetFile Method | 
            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: 13.0.131
 Syntax
SyntaxISharePointFile GetFile(
	string serverRelativeUrl
)
Parameters
- serverRelativeUrl
- Type: SystemString
 Server relative URL
Return Value
Type: 
ISharePointFileSharePoint file, or null
 Exceptions
Exceptions| Exception | Condition | 
|---|
| FileNotFoundException | Thrown when requested file is not present at SharePoint server (and eager loading is used). | 
| SharePointServerException | Thrown whenever server error occurs. | 
| WebException | Thrown when error related to network or protocol occurs. | 
| SharePointConnectionNotSupportedException | Thrown when given connectionData contains unsupported authentication mode or invalid URL. | 
| Exception | Thrown in case of unexpected error condition. | 
 See Also
See Also