SPWeb.GetObject Method
Retrieves a file, folder, or list item that is associated with the specified URL.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Parameters
- strUrl
- Type: System.String
The URL of the object to retrieve.
Return Value
Type: System.ObjectThe file, folder, or list item that is associated with the specified URL.
| Exception | Condition |
|---|---|
| ArgumentNullException |
strUrl is null. |