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.