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)

Syntax

'Declaration
Public Function GetFileOrFolderObject ( _
    strUrl As String _
) As Object
'Usage
Dim instance As SPWeb
Dim strUrl As String
Dim returnValue As Object

returnValue = instance.GetFileOrFolderObject(strUrl)
public Object GetFileOrFolderObject(
    string strUrl
)

Parameters

Return value

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

Remarks

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

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace