Свойство Field.EnforceUniqueValues
Gets or sets a Boolean value that specifies whether to enforce uniqueness in column values. The default is false.
Пространство имен: 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 EnforceUniqueValues As Boolean
Get
Set
'Применение
Dim instance As Field
Dim value As Boolean
value = instance.EnforceUniqueValues
instance.EnforceUniqueValues = value
public bool EnforceUniqueValues { get; set; }
Значение свойства
Тип: System.Boolean
Returns Boolean.
Замечания
When you set this property to true, you should also set the Indexed property to true.
The equivalent XML attribute for the Field element in a field definition is AllowDuplicateValues.