Share via


CloudTable.CreateIfNotExistsAsync Método

Definição

Sobrecargas

CreateIfNotExistsAsync()

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

CreateIfNotExistsAsync(CancellationToken)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

CreateIfNotExistsAsync(TableRequestOptions, OperationContext)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

CreateIfNotExistsAsync(IndexingMode, Nullable<Int32>, CancellationToken)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

CreateIfNotExistsAsync(TableRequestOptions, OperationContext, CancellationToken)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

CreateIfNotExistsAsync(IndexingMode, Nullable<Int32>, Nullable<Int32>, CancellationToken)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

CreateIfNotExistsAsync(TableRequestOptions, OperationContext, Nullable<IndexingMode>, Nullable<Int32>, CancellationToken)
CreateIfNotExistsAsync(TableRequestOptions, OperationContext, String, Nullable<Int32>, Nullable<Int32>, CancellationToken)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

CreateIfNotExistsAsync()

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync ();
abstract member CreateIfNotExistsAsync : unit -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : unit -> System.Threading.Tasks.Task<bool>
Public Overridable Function CreateIfNotExistsAsync () As Task(Of Boolean)

Retornos

Um objeto Task<TResult> do tipo bool que representa a operação assíncrona.

Comentários

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

Aplica-se a

CreateIfNotExistsAsync(CancellationToken)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (System.Threading.CancellationToken cancellationToken);
abstract member CreateIfNotExistsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function CreateIfNotExistsAsync (cancellationToken As CancellationToken) As Task(Of Boolean)

Parâmetros

cancellationToken
CancellationToken

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

Um objeto Task<TResult> do tipo bool que representa a operação assíncrona.

Comentários

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

Aplica-se a

CreateIfNotExistsAsync(TableRequestOptions, OperationContext)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions, Microsoft.Azure.Cosmos.Table.OperationContext operationContext);
abstract member CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext -> System.Threading.Tasks.Task<bool>
Public Overridable Function CreateIfNotExistsAsync (requestOptions As TableRequestOptions, operationContext As OperationContext) As Task(Of 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.

Retornos

Um objeto Task<TResult> do tipo bool que representa a operação assíncrona.

Comentários

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

Aplica-se a

CreateIfNotExistsAsync(IndexingMode, Nullable<Int32>, CancellationToken)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (Microsoft.Azure.Cosmos.IndexingMode indexingMode, int? throughput, System.Threading.CancellationToken cancellationToken);
abstract member CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.IndexingMode * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.IndexingMode * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function CreateIfNotExistsAsync (indexingMode As IndexingMode, throughput As Nullable(Of Integer), cancellationToken As CancellationToken) As Task(Of Boolean)

Parâmetros

indexingMode
IndexingMode

Modo de indexação de tabela do CosmosDB

throughput
Nullable<Int32>

Taxa de transferência da tabela do CosmosDB

cancellationToken
CancellationToken

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

Um objeto Task<TResult> do tipo bool que representa a operação assíncrona.

Comentários

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

Aplica-se a

CreateIfNotExistsAsync(TableRequestOptions, OperationContext, CancellationToken)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions, Microsoft.Azure.Cosmos.Table.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
abstract member CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function CreateIfNotExistsAsync (requestOptions As TableRequestOptions, operationContext As OperationContext, cancellationToken As CancellationToken) As Task(Of 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.

cancellationToken
CancellationToken

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

Um objeto Task<TResult> do tipo bool que representa a operação assíncrona.

Comentários

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

Aplica-se a

CreateIfNotExistsAsync(IndexingMode, Nullable<Int32>, Nullable<Int32>, CancellationToken)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (Microsoft.Azure.Cosmos.IndexingMode indexingMode, int? throughput, int? defaultTimeToLive, System.Threading.CancellationToken cancellationToken);
abstract member CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.IndexingMode * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.IndexingMode * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function CreateIfNotExistsAsync (indexingMode As IndexingMode, throughput As Nullable(Of Integer), defaultTimeToLive As Nullable(Of Integer), cancellationToken As CancellationToken) As Task(Of 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.

cancellationToken
CancellationToken

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

Um objeto Task<TResult> do tipo bool que representa a operação assíncrona.

Comentários

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

Aplica-se a

CreateIfNotExistsAsync(TableRequestOptions, OperationContext, Nullable<IndexingMode>, Nullable<Int32>, CancellationToken)

public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (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 CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * Nullable<Microsoft.Azure.Cosmos.IndexingMode> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * Nullable<Microsoft.Azure.Cosmos.IndexingMode> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function CreateIfNotExistsAsync (requestOptions As TableRequestOptions, operationContext As OperationContext, indexingMode As Nullable(Of IndexingMode), throughput As Nullable(Of Integer), cancellationToken As CancellationToken) As Task(Of Boolean)

Parâmetros

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

Retornos

Aplica-se a

CreateIfNotExistsAsync(TableRequestOptions, OperationContext, String, Nullable<Int32>, Nullable<Int32>, CancellationToken)

Inicia uma operação assíncrona para criar uma tabela se ela ainda não existir.

public virtual System.Threading.Tasks.Task<bool> CreateIfNotExistsAsync (Microsoft.Azure.Cosmos.Table.TableRequestOptions requestOptions, Microsoft.Azure.Cosmos.Table.OperationContext operationContext, string serializedIndexingPolicy, int? throughput, int? defaultTimeToLive, System.Threading.CancellationToken cancellationToken);
abstract member CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * string * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.CreateIfNotExistsAsync : Microsoft.Azure.Cosmos.Table.TableRequestOptions * Microsoft.Azure.Cosmos.Table.OperationContext * string * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function CreateIfNotExistsAsync (requestOptions As TableRequestOptions, operationContext As OperationContext, serializedIndexingPolicy As String, throughput As Nullable(Of Integer), defaultTimeToLive As Nullable(Of Integer), cancellationToken As CancellationToken) As Task(Of 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.

cancellationToken
CancellationToken

Um CancellationToken a ser observado ao aguardar a conclusão da tarefa.

Retornos

Um objeto Task<TResult> do tipo bool que representa a operação assíncrona.

Comentários

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

Aplica-se a