获取表(Table)或视图(View)中的一行数据。
Namespace: Aliyun.OpenServices.OpenTableService
Assembly: Aliyun.OpenServices (in Aliyun.OpenServices.dll) Version: 1.0.5290.21916
Syntax
Parameters
- criteria
- Type: Aliyun.OpenServices.OpenTableServiceSingleRowQueryCriteria
表示查询条件的SingleRowQueryCriteria对象。 - transactionId
- Type: SystemString
事务ID,不为空时表示该操作在该事务中进行。
Return Value
Type: Row表示一行数据的Row的对象。如果指定的Row对象没找到,则返回null。
Exceptions
Exception | Condition |
---|---|
ArgumentException | criteria包含的信息无效。 |
ArgumentNullException | criteria为空引用。 |
OtsException | OTS访问返回错误消息。 |
WebException | 由于网络原因请求失败, - 或 - 访问超时。 |
InvalidOperationException | 返回结果解析错误。 |
See Also