TableClient.CreateIfNotExists(CancellationToken) Method

Definition

Creates a table with the name used to construct this client instance if it does not already exist.

public virtual Azure.Response<Azure.Data.Tables.Models.TableItem> CreateIfNotExists (System.Threading.CancellationToken cancellationToken = default);
abstract member CreateIfNotExists : System.Threading.CancellationToken -> Azure.Response<Azure.Data.Tables.Models.TableItem>
override this.CreateIfNotExists : System.Threading.CancellationToken -> Azure.Response<Azure.Data.Tables.Models.TableItem>
Public Overridable Function CreateIfNotExists (Optional cancellationToken As CancellationToken = Nothing) As Response(Of TableItem)

Parameters

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A Response<T> containing properties of the table. If the table already exists, then Status is 409. The Response can be accessed via the GetRawResponse() method.

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to