Export (0) Print
Expand All

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
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

public bool EnforceUniqueValues { get; set; }

Property value

Type: 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.

Show:
© 2014 Microsoft