Partager via


Field.EnforceUniqueValues - Propriété

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

Espace de noms :  Microsoft.SharePoint.Client
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public Property EnforceUniqueValues As Boolean
    Get
    Set
'Utilisation
Dim instance As Field
Dim value As Boolean

value = instance.EnforceUniqueValues

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

Valeur de propriété

Type : System.Boolean
Returns Boolean.

Remarques

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.

Voir aussi

Référence

Field classe

Field - Membres

Microsoft.SharePoint.Client - Espace de noms