次の方法で共有


Alter メソッド (IndexOperation)

指定したインデックス操作に対し、SQL Server のインスタンスの Index オブジェクトのプロパティに対する変更をすべて更新します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Public Sub Alter ( _
    operation As IndexOperation _
)
'使用
Dim instance As Index
Dim operation As IndexOperation

instance.Alter(operation)
public void Alter(
    IndexOperation operation
)
public:
void Alter(
    IndexOperation operation
)
member Alter : 
        operation:IndexOperation -> unit 
public function Alter(
    operation : IndexOperation
)

パラメーター

説明

Alter メソッドは、Index オブジェクトの作成後、または最後の Alter ステートメントの後に Index オブジェクトのプロパティに対して行われたすべての変更を更新します。変更が結合され、SQL Server のインスタンスへの 1 回のネットワーク トリップで SQL Server のインスタンスに送信されます。

注意

UserDefinedTableType オブジェクトに基づくインデックスは変更できないため、このメソッドを実行すると例外が発生します。