Export (0) Print
Expand All
TrySetAppDatabaseAsAccessed method
TrySetAppDatabaseStorageState method
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)

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