다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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