SPWeb.GetFile method (String)
SharePoint 2013
Retrieves the file object located at the specified URL.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- strUrl
- Type: System.String
The URL for the file.
| Exception | Condition |
|---|---|
| ArgumentNullException | strUrl is null . |
| ArgumentException | strUrl is or empty. |