SharePointUrlProviderGetSharePointFileUrl 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 public 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:
StringThe URL which the file can be accessed at.
Implements
ISharePointUrlProviderGetSharePointFileUrl(String, NullableInt32, NullableInt32, NullableInt32)Exceptions Exception | Condition |
---|
ArgumentNullException | filePath is null. |
ArgumentException | filePath is empty string. |
See Also