Compartir a través de


Enable Método

Enables the index.

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

Sintaxis

'Declaración
Public Sub Enable ( _
    action As IndexEnableAction _
)
'Uso
Dim instance As Index
Dim action As IndexEnableAction

instance.Enable(action)
public void Enable(
    IndexEnableAction action
)
public:
void Enable(
    IndexEnableAction action
)
member Enable : 
        action:IndexEnableAction -> unit 
public function Enable(
    action : IndexEnableAction
)

Parámetros

Notas

The action parameter is used to specify actions such as rebuild or re-create the index.

[!NOTA]

Indexes based on the UserDefinedTableType object cannot be modified and running this method will generate an exception.