Export (0) Print
Expand All
Expand Minimize

SPWeb.GetObject method

Retrieves a file, folder, or list item that is associated with the specified URL.

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

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

returnValue = instance.GetObject(strUrl)

Parameters

strUrl
Type: System.String

The URL of the object to retrieve.

Return value

Type: System.Object
The file, folder, or list item that is associated with the specified URL.

ExceptionCondition
ArgumentNullException

strUrl is null .

If the strUrl parameter is an empty string, this method returns the root folder of the website.

Show:
© 2014 Microsoft