Share via


Index.Recreate Method

Re-creates the index.

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

Syntax

'Declaration
Public Sub Recreate
'Usage
Dim instance As Index

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

Remarks

This method is equivalent to the Transact-SQL statement CREATE...WITH DROP EXISTING.