Export (0) Print
Expand All
Expand Minimize

SPWeb.GetFileOrFolderObject Method

Retrieves a file or folder on the website with the specified URL.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public Object GetFileOrFolderObject(
	string strUrl
)

Parameters

strUrl
Type: System.String

The URL of the file or folder.

Return Value

Type: System.Object
The file or folder on the website with the specified URL.

The URL that is passed to this method can be an absolute URL or server-relative URL.

Show:
© 2014 Microsoft