SPMobileUrlFieldValidator.Validate 方法
验证在用户界面中字段的值。
命名空间: Microsoft.SharePoint.Mobile.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overrides Sub Validate
用法
Dim instance As SPMobileUrlFieldValidator
instance.Validate()
public override void Validate()
实现
备注
此重写验证的格式在 UI 中的值正确 url。如果的值为无效的IsValid属性设置为false和ErrorMessage属性分配适当的消息。
备注
此方法验证在 UI 中,不是SPFieldUrl对象的Field属性中的值的值。如果用户已更改了值并且不保存它,用户界面中字段的值将SPField对象的Field属性中的值不同。