共用方式為


Rename 方法

Renames the index.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub Rename ( _
    newname As String _
)
'用途
Dim instance As Index
Dim newname As String

instance.Rename(newname)
public void Rename(
    string newname
)
public:
virtual void Rename(
    String^ newname
) sealed
abstract Rename : 
        newname:string -> unit 
override Rename : 
        newname:string -> unit 
public final function Rename(
    newname : String
)

參數

實作

IRenamable. . :: . .Rename(String)

備註

[!附註]

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