Share via


SPMobileFieldValidator Class

Verifies that the value (in the UI) of a particular field for a particular list item meets any restrictions on values for that field.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.MobileControls.MobileControl
      System.Web.UI.MobileControls.TextControl
        System.Web.UI.MobileControls.BaseValidator
          Microsoft.SharePoint.MobileControls.SPMobileFieldValidator
            Microsoft.SharePoint.MobileControls.SPMobileBaseNumberFieldValidator
            Microsoft.SharePoint.MobileControls.SPMobileDateTimeFieldValidator
            Microsoft.SharePoint.MobileControls.SPMobileNoteFieldValidator
            Microsoft.SharePoint.MobileControls.SPMobileTextFieldValidator
            Microsoft.SharePoint.MobileControls.SPMobileUrlFieldValidator

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

Syntax

<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPMobileFieldValidator _
    Inherits BaseValidator _
    Implements IValidator

Dim instance As SPMobileFieldValidator
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPMobileFieldValidator : BaseValidator, 
    IValidator

Remarks

The Validate method has no default implementation, so use this class as a base for deriving new validator classes. Implement the needed logic for the Validate method.

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

SPMobileFieldValidator Members

Microsoft.SharePoint.MobileControls Namespace