SPAppIFrame class

The SPAppIFrame control is used by SharePoint App developers to iframe remote pages into thier SharePoint pages. The SPAppIFrame provides several useful features for this scenario: 1) The src attribute of the SPAppIFrame can start with the ~remoteAppUrl token which will get resolved into the url to the Azure VM that the SPApp was installed into. 2) SPAppIframe supports postmessage communications that lets the iframed content send a resize message to the parent page to resize the iframe.

Inheritance hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      Microsoft.SharePoint.WebControls.SPAppIFrame

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class SPAppIFrame _
    Inherits WebControl
'Usage
Dim instance As SPAppIFrame
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class SPAppIFrame : WebControl

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPAppIFrame members

Microsoft.SharePoint.WebControls namespace