Index.Rename Method (String)

 

Renames the index.

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

public void Rename(
	string newname
)

Parameters

newname
Type: System.String

A String value that specifies the new name of 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: