Поделиться через


Свойство 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.

См. также

Справочные материалы

Field класс

Элементы Field

Пространство имен Microsoft.SharePoint.Client