Class FileFolderExtensions
Inheritance
System.Object
FileFolderExtensions
Namespace: PnP.Framework.Modernization.Extensions
Assembly: PnP.Framework.dll
Syntax
public static class FileFolderExtensions : object
Methods
GetFileByServerRelativeUrlAsString(Web, String)
Returns a file as string
Declaration
public static string GetFileByServerRelativeUrlAsString(this Web web, string serverRelativeUrl)
Parameters
Web
web
The Web to process |
System. The server relative URL to the file |
Returns
System. The file contents as a string |
Remarks
Based on https://github.com/SharePoint/PnP-Sites-Core/blob/master/Core/OfficeDevPnP.Core/Extensions/FileFolderExtensions.cs
Modified to force onpremises support