Index::Enable Method (IndexEnableAction)

 

Enables the index.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public:
void Enable(
	IndexEnableAction action
)

Parameters

action
Type: Microsoft.SqlServer.Management.Smo::IndexEnableAction

An IndexEnableAction object value that specifies the action to take when enabling the index.

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

System_CAPS_noteNote

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

Return to top
Show: