Search Results for

    Show / Hide Table of Contents

    Interface IFilePreview

    Response object from a Graph Preview call on an IFile object Either getUrl, postUrl, or both might be returned depending on the current state of embed support for the specified options. postParameters is a string formatted as application/x-www-form-urlencoded, and if performing a POST to the postUrl the content-type should be set accordingly. For example: POST https://www.onedrive.com/embed_by_post Content-Type: application/x-www-form-urlencoded param1=value&param2=another%20value

    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public interface IFilePreview

    Properties

    GetUrl

    URL suitable for embedding using HTTP GET (iframes, etc.)

    Declaration
    string GetUrl { get; }
    Property Value
    System.String

    PostParameters

    POST parameters to include if using postUrl

    Declaration
    string PostParameters { get; }
    Property Value
    System.String

    PostUrl

    URL suitable for embedding using HTTP POST (form post, JS, etc.)

    Declaration
    string PostUrl { get; }
    Property Value
    System.String

    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer