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
strUrl
Type: System.StringThe URL of the file or folder.
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.