Index.Rebuild Method

Rebuilds the index.

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

Syntax

'Declaration
Public Sub Rebuild
'Usage
Dim instance As Index

instance.Rebuild()
public void Rebuild()
public:
void Rebuild()
member Rebuild : unit -> unit 
public function Rebuild()

Remarks

Note

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