Click or drag to resize
GetLocalSharePointFileHandlerGetSharePointFileUrl Method
Returns a URL that will return a sharepoint file upon GET request.

Namespace: CMS.SharePoint
Assembly: CMS.SharePoint (in CMS.SharePoint.dll) Version: 8.2.23
Syntax
C#
public static string GetSharePointFileUrl(
	string localSharePointFileHandlerUrl,
	int sharePointFileID,
	bool forceDownload = false
)

Parameters

localSharePointFileHandlerUrl
Type: SystemString
Relative or absolute URL of the handler's ASHX file
sharePointFileID
Type: SystemInt32
ID if the sharepoint file to return
forceDownload (Optional)
Type: SystemBoolean
Indicates whether you want to force user to download the file upon GET request.

Return Value

Type: String
Returns a URL that will return a sharepoint file upon GET request.
See Also