Search Results for

    Show / Hide Table of Contents

    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.String serverRelativeUrl

    The server relative URL to the file

    Returns
    System.String

    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
    
    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer