SwitchPartition 方法 (Int32, Table, Int32)

将表的指定源分区切换到指定目标表的指定目标。

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub SwitchPartition ( _
    sourcePartitionNumber As Integer, _
    targetTable As Table, _
    targetPartitionNumber As Integer _
)
用法
Dim instance As Table
Dim sourcePartitionNumber As Integer
Dim targetTable As Table
Dim targetPartitionNumber As Integer

instance.SwitchPartition(sourcePartitionNumber, _
    targetTable, targetPartitionNumber)
public void SwitchPartition(
    int sourcePartitionNumber,
    Table targetTable,
    int targetPartitionNumber
)
public:
void SwitchPartition(
    int sourcePartitionNumber, 
    Table^ targetTable, 
    int targetPartitionNumber
)
member SwitchPartition : 
        sourcePartitionNumber:int * 
        targetTable:Table * 
        targetPartitionNumber:int -> unit 
public function SwitchPartition(
    sourcePartitionNumber : int, 
    targetTable : Table, 
    targetPartitionNumber : int
)

参数