共用方式為


IsUnique 屬性

Gets or sets the Boolean property value that specifies whether the index is unique or not.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property IsUnique As Boolean
    Get
    Set
'用途
Dim instance As Index
Dim value As Boolean

value = instance.IsUnique

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

屬性值

型別:System. . :: . .Boolean
A Boolean value that specifies whether the index is unique or not.
If True, the index is unique.
If False (default), the index is not unique.

備註

This property cannot be modified by using the Alter()()()() method. To change the property, the index must be rebuilt or re-created.