共用方式為


IgnoreDuplicateKeys 屬性

Gets or sets the Boolean property value that specifies whether the index ignores duplicate keys.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute> _
Public Property IgnoreDuplicateKeys As Boolean
    Get
    Set
'用途
Dim instance As Index
Dim value As Boolean

value = instance.IgnoreDuplicateKeys

instance.IgnoreDuplicateKeys = value
[SfcPropertyAttribute]
public bool IgnoreDuplicateKeys { get; set; }
[SfcPropertyAttribute]
public:
property bool IgnoreDuplicateKeys {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute>]
member IgnoreDuplicateKeys : bool with get, set
function get IgnoreDuplicateKeys () : boolean
function set IgnoreDuplicateKeys (value : boolean)

屬性值

型別:System. . :: . .Boolean
A Boolean value that specifies whether the index ignores duplicate keys.
If True, the index ignores duplicate keys. Otherwise, False (default).

備註

This property controls error generation when an INSERT or UPDATE statement causes a constraint violation because there is a UNIQUE or PRIMARY KEY constraint implemented on the index.