Condividi tramite


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

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