SPWeb.GetFileAsString Method
Gets the contents of the file object located at the specified URL as a string.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Parameters
- url
- Type: System.String
The URL for the file.
| Exception | Condition |
|---|---|
| ArgumentNullException |
url is null. |