Compartir a través de


CloudTable.CreateIfNotExists Método

Definición

Sobrecargas

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

Crea la tabla si no existe todavía.

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

Crea la tabla si no existe todavía.

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

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

Crea la tabla si no existe todavía.

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

Parámetros

requestOptions
TableRequestOptions

Objeto TableRequestOptions que especifica opciones adicionales para la solicitud.

operationContext
OperationContext

Objeto OperationContext que representa el contexto para la operación actual.

serializedIndexingPolicy
String

Directiva de indexación de tablas de CosmosDB.

throughput
Nullable<Int32>

Rendimiento de la tabla de CosmosDB.

defaultTimeToLive
Nullable<Int32>

Tiempo de vida de la tabla de CosmosDB en segundos. Null implica que TTL está desactivado, -1 es igual a TTL está activado y conserva las filas indefinidamente, cualquier otro valor establece TTL.

Devoluciones

Es true si se creó la tabla; de lo contrario, false.

Comentarios

Esta API realiza una comprobación de existencia y, por tanto, requiere permisos de lista.

Se aplica a

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

Crea la tabla si no existe todavía.

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

Parámetros

indexingMode
IndexingMode

Modo de indexación de tablas de CosmosDB

throughput
Nullable<Int32>

Rendimiento de la tabla de CosmosDB.

defaultTimeToLive
Nullable<Int32>

Tiempo de vida de la tabla de CosmosDB en segundos. Null implica que TTL está desactivado, -1 es igual a TTL está activado y conserva las filas indefinidamente, cualquier otro valor establece TTL.

Devoluciones

Es true si se creó la tabla; de lo contrario, false.

Comentarios

Esta API realiza una comprobación de existencia y, por tanto, requiere permisos de lista.

Se aplica a

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

Parámetros

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

Devoluciones

Se aplica a

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

Parámetros

requestOptions
TableRequestOptions
operationContext
OperationContext

Devoluciones

Se aplica a

CreateIfNotExists()

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

Devoluciones

Se aplica a

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

Parámetros

indexingMode
Nullable<IndexingMode>
throughput
Nullable<Int32>

Devoluciones

Se aplica a