SP.Web.getFileByServerRelativeUrl(serverRelativeUrl) Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Applies To
Remarks
Returns the file object located at the specified server-relative URL.
var value = SP.Web.getFileByServerRelativeUrl(serverRelativeUrl);
Parameters
- serverRelativeUrl
A string that specifies the server-relative URL for the file.
Type: string
Return Value
Type: SP.File
Applies To
Remarks
It must not be null. It must not be empty.