Partager via


File.GetWOPIFrameUrl(SPWOPIFrameAction) Method

Definition

[Microsoft.SharePoint.Client.Remote]
public Microsoft.SharePoint.Client.ClientResult<string> GetWOPIFrameUrl(Microsoft.SharePoint.Client.Utilities.SPWOPIFrameAction action);
member this.GetWOPIFrameUrl : Microsoft.SharePoint.Client.Utilities.SPWOPIFrameAction -> Microsoft.SharePoint.Client.ClientResult<string>
Public Function GetWOPIFrameUrl (action As SPWOPIFrameAction) As ClientResult(Of String)

Parameters

Returns

Attributes

Remarks

URLs returned by this method should be considered temporary and short-lived. Do not persist these URLs. Additionally, consider using the preferred method for generating preview URLs here: https://learn.microsoft.com/en-us/sharepoint/dev/embedded/development/tutorials/using-file-preview#get-the-preview-url-using-graph.

Applies to