Click or drag to resize
ISharePointUrlProviderGetSharePointFileUrl Method
Gets the URL for a file at the SharePoint server.

Namespace: CMS.SharePoint
Assembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 13.0.131
Syntax
C#
string 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: String
The URL which the file can be accessed at.
Exceptions
ExceptionCondition
ArgumentNullExceptionfilePath is null.
ArgumentExceptionfilePath is empty string.
See Also