SPUtility.IsBuiltInFieldDisallowingUniqueness method

Returns a Boolean value that indicates whether a field is one of the special system fields that are not allowed to have the EnforceUniqueValues property set to false.

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

Syntax

'Declaration
Public Shared Function IsBuiltInFieldDisallowingUniqueness ( _
    fieldId As Guid _
) As Boolean
'Usage
Dim fieldId As Guid
Dim returnValue As Boolean

returnValue = SPUtility.IsBuiltInFieldDisallowingUniqueness(fieldId)
public static bool IsBuiltInFieldDisallowingUniqueness(
    Guid fieldId
)

Parameters

  • fieldId
    Type: System.Guid

    The value of the field’s Id property.

Return value

Type: System.Boolean
true if the field is not allowed to force unique values.

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace