LookupField.Validate 方法
验证Value的值满足所有限制字段内容,例如长度、 格式和数据类型。
命名空间: Microsoft.SharePoint.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overrides Sub Validate
用法
Dim instance As LookupField
instance.Validate()
public override void Validate()
实现
备注
Value具有LookupField作为其FieldRenderingControl属性的SPFieldLookup对象是在 UI 中,不是基础值 (即ItemFieldValue) 子下拉列表的值。仅当您需要验证的用户界面值时,请使用Validate 。若要验证ItemFieldValue,请使用GetValidatedString()。