GetFileOrFolderObject Method
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

SPWeb.GetFileOrFolderObject Method

Windows SharePoint Services 3

Returns a file or folder on the Web site with the specified URL.

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

public Object GetFileOrFolderObject(
	string strUrl


Type: System.String
A string that contains the URL of the file or folder.

Return Value

Type: System.Object
An SPFile or SPFolder object that represents the file or folder.
© 2016 Microsoft