共用方式為


SPUtility.IsBuiltInFieldDisallowingUniqueness method

會傳回指示欄位是否為其中一個特殊系統欄位不允許EnforceUniqueValues屬性設定為falseBoolean值。

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

Syntax

'宣告
Public Shared Function IsBuiltInFieldDisallowingUniqueness ( _
    fieldId As Guid _
) As Boolean
'用途
Dim fieldId As Guid
Dim returnValue As Boolean

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

參數

傳回值

Type: System.Boolean
true如果欄位不允許強制唯一值。

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace