Свойство Field.Required
Gets or sets a value that specifies whether the field requires a value.
Пространство имен: 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 Required As Boolean
Get
Set
'Применение
Dim instance As Field
Dim value As Boolean
value = instance.Required
instance.Required = value
public bool Required { get; set; }
Значение свойства
Тип: System.Boolean
Returns Booleantrue if the field requires a value; otherwise, returns false.
Исключения
Исключение | Условие |
---|---|
[System.NotSupportedException] | Value is set to true, and the list is an external list. Error code: -1. |
Замечания
If the field requires a value, this value must be set to true. Otherwise, it must be set to false.