TableBatchOperation Class

 

Updated: April 11, 2016

Represents a batch operation on a table.

Namespace:   Microsoft.WindowsAzure.Storage.Table
Assembly:  Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

System.Object
  Microsoft.WindowsAzure.Storage.Table.TableBatchOperation

public sealed class TableBatchOperation : IList<TableOperation>, 
	ICollection<TableOperation>, IEnumerable<TableOperation>, IEnumerable

NameDescription
System_CAPS_pubmethodTableBatchOperation()

Initializes a new instance of the TableBatchOperation class.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of operations in this TableBatchOperation.

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the TableBatchOperation is read-only.

System_CAPS_pubpropertyItem[Int32]

Gets or sets the TableOperation item at the specified index.

NameDescription
System_CAPS_pubmethodAdd(TableOperation)

Adds the TableOperation to the TableBatchOperation.

System_CAPS_pubmethodClear()

Clears all TableOperation objects from the TableBatchOperation.

System_CAPS_pubmethodContains(TableOperation)

Returns true if this TableBatchOperation contains the specified element.

System_CAPS_pubmethodCopyTo(TableOperation[], Int32)

Copies all the elements of the TableBatchOperation to the specified one-dimensional array starting at the specified destination array index.

System_CAPS_pubmethodDelete(ITableEntity)

Adds a TableOperation to the TableBatchOperation that deletes the specified entity from a table.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an IEnumerator<T> for the TableBatchOperation.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIndexOf(TableOperation)

Returns the zero-based index of the first occurrence of the specified TableOperation item, or -1 if the TableBatchOperation does not contain the item.

System_CAPS_pubmethodInsert(Int32, TableOperation)

Inserts a TableOperation into the TableBatchOperation at the specified index.

System_CAPS_pubmethodInsert(ITableEntity)

Adds a TableOperation to the TableBatchOperation that inserts the specified entity into a table.

System_CAPS_pubmethodInsert(ITableEntity, Boolean)

Adds a TableOperation object that inserts the specified entity into the table as part of the batch operation.

System_CAPS_pubmethodInsertOrMerge(ITableEntity)

Adds a TableOperation to the TableBatchOperation that inserts the specified entity into a table if the entity does not exist; if the entity does exist then its contents are merged with the provided entity.

System_CAPS_pubmethodInsertOrReplace(ITableEntity)

Adds a TableOperation to the TableBatchOperation that inserts the specified entity into a table if the entity does not exist; if the entity does exist then its contents are replaced with the provided entity.

System_CAPS_pubmethodMerge(ITableEntity)

Adds a TableOperation to the TableBatchOperation that merges the contents of the specified entity with the existing entity in a table.

System_CAPS_pubmethodRemove(TableOperation)

Removes the specified TableOperation item from the TableBatchOperation.

System_CAPS_pubmethodRemoveAt(Int32)

Removes the TableOperation at the specified index from the TableBatchOperation.

System_CAPS_pubmethodReplace(ITableEntity)

Adds a TableOperation to the TableBatchOperation that replaces the contents of the specified entity in a table.

System_CAPS_pubmethodRetrieve(String, String)

Adds a TableOperation to the TableBatchOperation that retrieves an entity with the specified partition key and row key.

System_CAPS_pubmethodRetrieve<TResult>(String, String, EntityResolver<TResult>, List<String>)

Adds a table operation to retrieve an entity of the specified class type with the specified partition key and row key to the batch operation.

System_CAPS_pubmethodRetrieve<TElement>(String, String, List<String>)

Inserts a TableOperation into the batch that retrieves an entity based on its row key and partition key. The entity will be deserialized into the specified class type which extends ITableEntity.

System_CAPS_pubmethodToString()

(Inherited from Object.)

Represents a batch operation on a table.

A batch operation is a collection of table operations which are executed by the Storage Service REST API as a single atomic operation, by invoking an Entity Group Transaction.

A batch operation may contain up to 100 individual table operations, with the requirement that each operation entity must have same partition key. A batch with a retrieve operation cannot contain any other operations. Note that the total payload of a batch operation is limited to 4MB.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: