Partager via


Méthode Index.Rebuild (Int32)

Rebuilds the index on the partition with the specified partition number.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Sub Rebuild ( _
    partitionNumber As Integer _
)
'Utilisation
Dim instance As Index 
Dim partitionNumber As Integer

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

Paramètres

  • partitionNumber
    Type : System.Int32
    A Int32 value that specifies the number of the partition to be rebuilt.

Notes

[!REMARQUE]

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

Exemples

Création, modification et suppression d'index

Voir aussi

Référence

Index Classe

Surcharge Rebuild

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Index

ALTER INDEX (Transact-SQL)

DBCC DBREINDEX (Transact-SQL)