| ISharePointUrlProviderGetSharePointFileUrl Method | 
            Gets the URL for a file at the SharePoint server.
            
 
Namespace: CMS.SharePointAssembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 13.0.131
 Syntax
Syntaxstring GetSharePointFileUrl(
	string filePath,
	Nullable<int> width = null,
	Nullable<int> height = null,
	Nullable<int> maxSideSize = null
)
Parameters
- filePath
- Type: SystemString
 The SharePoint server path to file in the format "/<appName>/<filePath>"
- width (Optional)
- Type: SystemNullableInt32
 Maximum width (px) of the image the handler should return.
- height (Optional)
- Type: SystemNullableInt32
 Maximum height (px) of the image the handler should return.
- maxSideSize (Optional)
- Type: SystemNullableInt32
 Maximum side size (px) of the image the handler should return.
Return Value
Type: 
StringThe URL which the file can be accessed at.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| ArgumentNullException | filePath is null. | 
| ArgumentException | filePath is empty string. | 
 See Also
See Also