Partilhar via


CloudTable.CreateIfNotExists Método

Definição

Sobrecargas

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

Cria a tabela se ela ainda não existe.

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

Cria a tabela se ela ainda não existe.

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

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

Cria a tabela se ela ainda não existe.

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

Um objeto TableRequestOptions que especifica opções adicionais para a solicitação.

operationContext
OperationContext

Um objeto OperationContext que representa o contexto da operação atual.

serializedIndexingPolicy
String

Política de indexação de tabela do CosmosDB.

throughput
Nullable<Int32>

Taxa de transferência da tabela do CosmosDB.

defaultTimeToLive
Nullable<Int32>

Tempo de tabela do CosmosDB para viver em segundos. Null implica que TTL está desativado, -1 igual a TTL está ativado e retém linhas indefinidamente, qualquer outro valor define TTL.

Retornos

true se a tabela foi criada; caso contrário, false.

Comentários

Essa API executa uma existência marcar e, portanto, requer permissões de lista.

Aplica-se a

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

Cria a tabela se ela ainda não existe.

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 indexação de tabela do CosmosDB

throughput
Nullable<Int32>

Taxa de transferência da tabela do CosmosDB.

defaultTimeToLive
Nullable<Int32>

Tempo de tabela do CosmosDB para viver em segundos. Null implica que TTL está desativado, -1 igual a TTL está ativado e retém linhas indefinidamente, qualquer outro valor define TTL.

Retornos

true se a tabela foi criada; caso contrário, false.

Comentários

Essa API executa uma existência marcar e, portanto, requer permissões de lista.

Aplica-se 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>

Retornos

Aplica-se 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

Retornos

Aplica-se a

CreateIfNotExists()

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

Retornos

Aplica-se 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>

Retornos

Aplica-se a