This topic has not yet been rated - Rate this topic

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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public Object GetObject(
	string 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.
Exception Condition
ArgumentNullException

strUrl is null.

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ