开始创建表(Table)及其相关视图(View)的异步操作。
Namespace: Aliyun.OpenServices.OpenTableService
Assembly: Aliyun.OpenServices (in Aliyun.OpenServices.dll) Version: 1.0.5290.21916
Syntax
Parameters
- tableMeta
- Type: Aliyun.OpenServices.OpenTableServiceTableMeta
TableMeta的对象,包含表(Table)及视图(View)的结构信息。 - callback
- Type: SystemAsyncCallback
AsyncCallback委托。 - state
- Type: SystemObject
此请求的状态对象。
Return Value
Type: IAsyncResult引用该异步请求的IAsyncResult对象。
Exceptions
Exception | Condition |
---|---|
ArgumentException | tableMeta为空引用, - 或 - tableMeta中的结构信息无效。 |
Remarks
这一操作在OTS中提交一个创建表的请求, 但该操作成功并不代表数据表已经创建完成。请在表创建完成后再对表进行进一步的操作,比如插入数据等。 如需检查表是否创建完成,请使用ListTables方法检查表是否存在。
OTS要求视图中数据行与原表数据行一一对应,因此强烈建议视图的主键(Primary Key)列包含表的全部主键列。
See Also