Compartir a través de


Index.IsUnique Propiedad

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

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design Or SfcPropertyFlags.Deploy)> _
Public Property IsUnique As Boolean 
    Get 
    Set
'Uso
Dim instance As Index 
Dim value As Boolean 

value = instance.IsUnique

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

Valor de la propiedad

Tipo: 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.

Comentarios

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

Ejemplos

Crear, modificar y eliminar índices

Vea también

Referencia

Index Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

Índices

CREATE INDEX (Transact-SQL)