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