/// <summary>
 /// Deletes a table in the storage account.
 /// </summary>
 /// <param name="tableName">The table name to create.</param>
 /// <param name="cancellationToken">A <see cref="CancellationToken"/> controlling the request lifetime.</param>
 /// <returns></returns>
 public virtual Response DeleteTable(string tableName, CancellationToken cancellationToken = default)
 {
     using DiagnosticScope scope = _diagnostics.CreateScope($"{nameof(TableServiceClient)}.{nameof(DeleteTable)}");
     scope.Start();
     try
     {
         return(_tableOperations.Delete(tableName, null, cancellationToken: cancellationToken));
     }
     catch (Exception ex)
     {
         scope.Failed(ex);
         throw;
     }
 }
예제 #2
0
 public virtual Response DeleteTable(string tableName, CancellationToken cancellationToken = default) =>
 _tableOperations.Delete(tableName, null, cancellationToken: cancellationToken);