CloudTable.CreateIfNotExists Method

Definition

Overloads

CreateIfNotExists(TableRequestOptions, OperationContext, String, Nullable<Int32>, Nullable<Int32>)

Creates the table if it does not already exist.

CreateIfNotExists(IndexingMode, Nullable<Int32>, Nullable<Int32>)

Creates the table if it does not already exist.

CreateIfNotExists(TableRequestOptions, OperationContext, Nullable<IndexingMode>, Nullable<Int32>)
CreateIfNotExists(TableRequestOptions, OperationContext)
CreateIfNotExists()
CreateIfNotExists(Nullable<IndexingMode>, Nullable<Int32>)

CreateIfNotExists(TableRequestOptions, OperationContext, String, Nullable<Int32>, Nullable<Int32>)

Creates the table if it does not already exist.

public virtual bool CreateIfNotExists (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 CreateIfNotExists : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * string * Nullable<int> * Nullable<int> -> bool
override this.CreateIfNotExists : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * string * Nullable<int> * Nullable<int> -> bool
Public Overridable Function CreateIfNotExists (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) As Boolean

Parameters

requestOptions
TableRequestOptions

A TableRequestOptions object that specifies additional options for the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

serializedIndexingPolicy
String

CosmosDB table indexing policy.

throughput
Nullable<Int32>

CosmosDB table throughput.

defaultTimeToLive
Nullable<Int32>

CosmosDB table time to live in seconds. Null implies TTL is off, -1 equals TTL is on and retain rows indefinitely, any other value sets TTL.

Returns

true if table was created; otherwise, false.

Remarks

This API performs an existence check and therefore requires list permissions.

Applies to

CreateIfNotExists(IndexingMode, Nullable<Int32>, Nullable<Int32>)

Creates the table if it does not already exist.

public virtual bool CreateIfNotExists (Microsoft.Azure.Cosmos.IndexingMode indexingMode, int? throughput = default, int? defaultTimeToLive = default);
abstract member CreateIfNotExists : Microsoft.Azure.Cosmos.IndexingMode * Nullable<int> * Nullable<int> -> bool
override this.CreateIfNotExists : Microsoft.Azure.Cosmos.IndexingMode * Nullable<int> * Nullable<int> -> bool
Public Overridable Function CreateIfNotExists (indexingMode As IndexingMode, Optional throughput As Nullable(Of Integer) = Nothing, Optional defaultTimeToLive As Nullable(Of Integer) = Nothing) As Boolean

Parameters

indexingMode
IndexingMode

CosmosDB table indexing mode

throughput
Nullable<Int32>

CosmosDB table throughput.

defaultTimeToLive
Nullable<Int32>

CosmosDB table time to live in seconds. Null implies TTL is off, -1 equals TTL is on and retain rows indefinitely, any other value sets TTL.

Returns

true if table was created; otherwise, false.

Remarks

This API performs an existence check and therefore requires list permissions.

Applies to

CreateIfNotExists(TableRequestOptions, OperationContext, Nullable<IndexingMode>, Nullable<Int32>)

public virtual bool CreateIfNotExists (Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions, Microsoft.Azure.Cosmos.Table.OperationContext operationContext, Microsoft.Azure.Cosmos.IndexingMode? indexingMode, int? throughput);
abstract member CreateIfNotExists : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * Nullable<Microsoft.Azure.Cosmos.IndexingMode> * Nullable<int> -> bool
override this.CreateIfNotExists : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * Nullable<Microsoft.Azure.Cosmos.IndexingMode> * Nullable<int> -> bool
Public Overridable Function CreateIfNotExists (requestOptions As TableRequestOptions, operationContext As OperationContext, indexingMode As Nullable(Of IndexingMode), throughput As Nullable(Of Integer)) As Boolean

Parameters

requestOptions
TableRequestOptions
operationContext
OperationContext
indexingMode
Nullable<IndexingMode>
throughput
Nullable<Int32>

Returns

Applies to

CreateIfNotExists(TableRequestOptions, OperationContext)

public virtual bool CreateIfNotExists (Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions, Microsoft.Azure.Cosmos.Table.OperationContext operationContext);
abstract member CreateIfNotExists : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> bool
override this.CreateIfNotExists : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> bool
Public Overridable Function CreateIfNotExists (requestOptions As TableRequestOptions, operationContext As OperationContext) As Boolean

Parameters

requestOptions
TableRequestOptions
operationContext
OperationContext

Returns

Applies to

CreateIfNotExists()

public virtual bool CreateIfNotExists ();
abstract member CreateIfNotExists : unit -> bool
override this.CreateIfNotExists : unit -> bool
Public Overridable Function CreateIfNotExists () As Boolean

Returns

Applies to

CreateIfNotExists(Nullable<IndexingMode>, Nullable<Int32>)

public virtual bool CreateIfNotExists (Microsoft.Azure.Cosmos.IndexingMode? indexingMode, int? throughput = default);
abstract member CreateIfNotExists : Nullable<Microsoft.Azure.Cosmos.IndexingMode> * Nullable<int> -> bool
override this.CreateIfNotExists : Nullable<Microsoft.Azure.Cosmos.IndexingMode> * Nullable<int> -> bool
Public Overridable Function CreateIfNotExists (indexingMode As Nullable(Of IndexingMode), Optional throughput As Nullable(Of Integer) = Nothing) As Boolean

Parameters

indexingMode
Nullable<IndexingMode>
throughput
Nullable<Int32>

Returns

Applies to