Field.ValidationMessage 属性
Gets or sets a value that specifies the error message returned when data validation fails for the field.
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Property ValidationMessage As String
Get
Set
用法
Dim instance As Field
Dim value As String
value = instance.ValidationMessage
instance.ValidationMessage = value
public string ValidationMessage { get; set; }
属性值
类型:System.String
Returns a String representing the error message returned when data validation fails for the field.
异常
异常 | 条件 |
---|---|
[Microsoft.SharePoint.SPException] | FieldTypeKind is not one of the following: Text, Number, Integer, Currency, Choice, or DateTime. Error code: -2146232832. |
备注
Its length must be equal to or less than 1024.