Field.EnforceUniqueValues property

Gets or sets a Boolean value that specifies whether to enforce uniqueness in column values. The default is false.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Property EnforceUniqueValues As Boolean
    Get
    Set
'Usage
Dim instance As Field
Dim value As Boolean

value = instance.EnforceUniqueValues

instance.EnforceUniqueValues = value
public bool EnforceUniqueValues { get; set; }

Property value

Type: System.Boolean
Returns Boolean.

Remarks

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.

See also

Reference

Field class

Field members

Microsoft.SharePoint.Client namespace