你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CloudTable.CreateAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateAsync()
CreateAsync(CancellationToken)
启动异步操作以创建表。
public virtual System.Threading.Tasks.Task CreateAsync (System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (cancellationToken As CancellationToken) As Task
参数
- cancellationToken
- CancellationToken
等待任务完成期间要观察的 CancellationToken。
返回
表示异步操作的 Task 对象。
适用于
CreateAsync(TableRequestOptions, OperationContext)
启动异步操作以创建表。
public virtual System.Threading.Tasks.Task CreateAsync (Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions, Microsoft.Azure.Cosmos.Table.OperationContext operationContext);
abstract member CreateAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> System.Threading.Tasks.Task
override this.CreateAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (requestOptions As TableRequestOptions, operationContext As OperationContext) As Task
参数
- requestOptions
- TableRequestOptions
一个 TableRequestOptions 对象,它指定请求的其他选项。
- operationContext
- OperationContext
一个 OperationContext 对象,它一个表示当前操作的上下文。
返回
表示异步操作的 Task 对象。
适用于
CreateAsync(TableRequestOptions, OperationContext, CancellationToken)
启动异步操作以创建表。
public virtual System.Threading.Tasks.Task CreateAsync (Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions, Microsoft.Azure.Cosmos.Table.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (requestOptions As TableRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task
参数
- requestOptions
- TableRequestOptions
一个 TableRequestOptions 对象,它指定请求的其他选项。
- operationContext
- OperationContext
一个 OperationContext 对象,它一个表示当前操作的上下文。
- cancellationToken
- CancellationToken
等待任务完成期间要观察的 CancellationToken。
返回
表示异步操作的 Task 对象。
适用于
CreateAsync(Nullable<IndexingMode>, Nullable<Int32>, CancellationToken)
public virtual System.Threading.Tasks.Task CreateAsync (Microsoft.Azure.Cosmos.IndexingMode? indexingMode, int? throughput, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : Nullable<Microsoft.Azure.Cosmos.IndexingMode> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : Nullable<Microsoft.Azure.Cosmos.IndexingMode> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (indexingMode As Nullable(Of IndexingMode), throughput As Nullable(Of Integer), cancellationToken As CancellationToken) As Task
参数
- indexingMode
- Nullable<IndexingMode>
- cancellationToken
- CancellationToken
返回
适用于
CreateAsync(Nullable<Int32>, IndexingMode, Nullable<Int32>, CancellationToken)
启动异步操作以创建表。
public virtual System.Threading.Tasks.Task CreateAsync (int? throughput, Microsoft.Azure.Cosmos.IndexingMode indexingMode, int? defaultTimeToLive, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : Nullable<int> * Microsoft.Azure.Cosmos.IndexingMode * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : Nullable<int> * Microsoft.Azure.Cosmos.IndexingMode * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (throughput As Nullable(Of Integer), indexingMode As IndexingMode, defaultTimeToLive As Nullable(Of Integer), cancellationToken As CancellationToken) As Task
参数
- indexingMode
- IndexingMode
为 CosmosDB 表指定索引模式
CosmosDB 表生存时间(以秒为单位)。 Null 表示 TTL 处于关闭状态,-1 等于 TTL 处于打开状态并无限期保留行,任何其他值设置 TTL。
- cancellationToken
- CancellationToken
等待任务完成期间要观察的 CancellationToken。
返回
表示异步操作的 Task 对象。
适用于
CreateAsync(Nullable<Int32>, String, Nullable<Int32>, CancellationToken)
启动异步操作以创建表。
public virtual System.Threading.Tasks.Task CreateAsync (int? throughput, string serializedIndexingPolicy, int? defaultTimeToLive, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : Nullable<int> * string * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : Nullable<int> * string * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (throughput As Nullable(Of Integer), serializedIndexingPolicy As String, defaultTimeToLive As Nullable(Of Integer), cancellationToken As CancellationToken) As Task
参数
- serializedIndexingPolicy
- String
CosmosDB 表索引策略。
CosmosDB 表生存时间(以秒为单位)。 Null 表示 TTL 处于关闭状态,-1 等于 TTL 处于打开状态并无限期保留行,任何其他值设置 TTL。
- cancellationToken
- CancellationToken
等待任务完成期间要观察的 CancellationToken。
返回
表示异步操作的 Task 对象。
适用于
CreateAsync(TableRequestOptions, OperationContext, Nullable<IndexingMode>, Nullable<Int32>, CancellationToken)
public virtual System.Threading.Tasks.Task CreateAsync (Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions, Microsoft.Azure.Cosmos.Table.OperationContext operationContext, Microsoft.Azure.Cosmos.IndexingMode? indexingMode, int? throughput, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * Nullable<Microsoft.Azure.Cosmos.IndexingMode> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * Nullable<Microsoft.Azure.Cosmos.IndexingMode> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (requestOptions As TableRequestOptions, operationContext As OperationContext, indexingMode As Nullable(Of IndexingMode), throughput As Nullable(Of Integer), cancellationToken As CancellationToken) As Task
参数
- requestOptions
- TableRequestOptions
- operationContext
- OperationContext
- indexingMode
- Nullable<IndexingMode>
- cancellationToken
- CancellationToken
返回
适用于
CreateAsync(TableRequestOptions, OperationContext, String, Nullable<Int32>, Nullable<Int32>, CancellationToken)
启动异步操作以创建表。
public virtual System.Threading.Tasks.Task CreateAsync (Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions, Microsoft.Azure.Cosmos.Table.OperationContext operationContext, string serializedIndexingPolicy, int? throughput, int? defaultTimeToLive, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * string * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CreateAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * string * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CreateAsync (requestOptions As TableRequestOptions, operationContext As OperationContext, serializedIndexingPolicy As String, throughput As Nullable(Of Integer), defaultTimeToLive As Nullable(Of Integer), cancellationToken As CancellationToken) As Task
参数
- requestOptions
- TableRequestOptions
一个 TableRequestOptions 对象,它指定请求的其他选项。
- operationContext
- OperationContext
一个 OperationContext 对象,它一个表示当前操作的上下文。
- serializedIndexingPolicy
- String
CosmosDB 表索引策略。
CosmosDB 表生存时间(以秒为单位)。 Null 表示 TTL 处于关闭状态,-1 等于 TTL 处于打开状态并无限期保留行,任何其他值设置 TTL。
- cancellationToken
- CancellationToken
等待任务完成期间要观察的 CancellationToken。
返回
表示异步操作的 Task 对象。