Share via


Web.GetFileByServerRelativePath method

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Function GetFileByServerRelativePath ( _
    serverRelativePath As ResourcePath _
) As File
'Usage
Dim instance As Web
Dim serverRelativePath As ResourcePath
Dim returnValue As File

returnValue = instance.GetFileByServerRelativePath(serverRelativePath)
public File GetFileByServerRelativePath(
    ResourcePath serverRelativePath
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.File

See also

Reference

Web class

Web members

Microsoft.SharePoint.Client namespace