다음을 통해 공유


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

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class SPMobileFieldValidator _
    Inherits BaseValidator _
    Implements IValidator
'Usage
Dim instance As SPMobileFieldValidator
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
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