IOtsBatchModifyData Method Aliyun Open Services SDK for .NET
把PutData和/或DeleteData的多次调用组合成一个调用。

Namespace: Aliyun.OpenServices.OpenTableService
Assembly: Aliyun.OpenServices (in Aliyun.OpenServices.dll) Version: 1.0.5290.21916
Syntax

void BatchModifyData(
	string tableName,
	IEnumerable<RowChange> rowChanges,
	string transactionId
)

Parameters

tableName
Type: SystemString
表(Table)名,不能为视图(View)名。
rowChanges
Type: System.Collections.GenericIEnumerableRowChange
RowChange对象的枚举器。
transactionId
Type: SystemString
事务(Transaction)ID。
Exceptions

ExceptionCondition
ArgumentException

tableName为空引用或值为空字符串,

- 或 -

talbeName违反OTS名称的命名规则。

- 或 -

rowChanges包含的信息无效。

ArgumentNullExceptionrowChanges为空引用。
OtsException

OTS访问返回错误消息。

WebException

由于网络原因请求失败,

- 或 -

访问超时。

InvalidOperationException

返回结果解析错误。

Remarks

要求这个组合调用必须在事务中进行,且所有数据更改的操作必须操作同一个数据分片键(Partition Key)的数据, 并且这个数据分片键要和开始事务(Transaction)的数据分片键相同。
See Also

Reference