Interface IFilePreview
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
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¶m2=another%20value
public interface IFilePreview
Properties
GetUrl
URL suitable for embedding using HTTP GET (iframes, etc.)
string GetUrl { get; }
Property Value
PostParameters
POST parameters to include if using postUrl
string PostParameters { get; }
Property Value
PostUrl
URL suitable for embedding using HTTP POST (form post, JS, etc.)
string PostUrl { get; }