Share via


SPMobileHtmlFormAdapter Class

Provides the form adapter for the HTML adapter set.

Inheritance Hierarchy

System.Object
  System.Web.UI.MobileControls.Adapters.ControlAdapter
    System.Web.UI.MobileControls.Adapters.HtmlControlAdapter
      System.Web.UI.MobileControls.Adapters.HtmlFormAdapter
        Microsoft.SharePoint.MobileControls.SPMobileHtmlFormAdapter

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

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class SPMobileHtmlFormAdapter _
    Inherits HtmlFormAdapter _
    Implements ISPMobileHead
'Usage
Dim instance As SPMobileHtmlFormAdapter
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class SPMobileHtmlFormAdapter : HtmlFormAdapter, 
    ISPMobileHead

Remarks

This class adds metadata tags into the HEAD section of the page. It also adds "enctype" attribute to the <form> element in upload.aspx if the current browser supports file upload.

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

SPMobileHtmlFormAdapter Members

Microsoft.SharePoint.MobileControls Namespace