Storage Client Library for Windows Phone (Version 7.0)

Microsoft Windows Azure Storage Blob

TableBatchOperation Class (Microsoft.WindowsAzure.Storage.Table)

Represents a batch operation on a table.

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

Inheritance Hierarchy

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

Syntax

 
public sealed class TableBatchOperation : IList<TableOperation>, 
	ICollection<TableOperation>, IEnumerable<TableOperation>, IEnumerable
 
public ref class TableBatchOperation sealed : IList<TableOperation^>, 
	ICollection<TableOperation^>, IEnumerable<TableOperation^>, 
	IEnumerable
 
[<Sealed>]
type TableBatchOperation = 
    class
        interface IList<TableOperation>
        interface ICollection<TableOperation>
        interface IEnumerable<TableOperation>
        interface IEnumerable
    end
 
Public NotInheritable Class TableBatchOperation
	Implements IList(Of TableOperation), ICollection(Of TableOperation),
	IEnumerable(Of TableOperation), IEnumerable

Constructors

NameDescription
System_CAPS_pubmethodTableBatchOperation()()()()

Initializes a new instance of the TableBatchOperation class.

Properties

NameDescription
System_CAPS_pubpropertyCountCountCountCount

Gets the number of operations in this TableBatchOperation.

System_CAPS_pubpropertyIsReadOnlyIsReadOnlyIsReadOnlyIsReadOnly

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

System_CAPS_pubpropertyItem[Int32]Item[Int32]Item(Int32)Item(Int32)

Gets or sets the TableOperation item at the specified index.

Methods

NameDescription
System_CAPS_pubmethodAdd(TableOperation)(TableOperation^)(TableOperation)(TableOperation)

Adds the TableOperation to the TableBatchOperation.

System_CAPS_pubmethodClear()()()()

Clears all TableOperation objects from the TableBatchOperation.

System_CAPS_pubmethodContains(TableOperation)(TableOperation^)(TableOperation)(TableOperation)

Returns true if this TableBatchOperation contains the specified element.

System_CAPS_pubmethodCopyTo(TableOperation[], Int32)(array<TableOperation^>^, Int32)(TableOperation[], Int32)(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)(ITableEntity^)(ITableEntity)(ITableEntity)

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

System_CAPS_pubmethodEquals(Object)(Object^)(Object)(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()()()()

Returns an IEnumerator<T><T><'T>(Of T) for the TableBatchOperation.

System_CAPS_pubmethodGetHashCode()()()()

(Inherited from Object.)

System_CAPS_pubmethodGetType()()()()

(Inherited from Object.)

System_CAPS_pubmethodIndexOf(TableOperation)(TableOperation^)(TableOperation)(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)(Int32, TableOperation^)(Int32, TableOperation)(Int32, TableOperation)

Inserts a TableOperation into the TableBatchOperation at the specified index.

System_CAPS_pubmethodInsert(ITableEntity)(ITableEntity^)(ITableEntity)(ITableEntity)

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

System_CAPS_pubmethodInsert(ITableEntity, Boolean)(ITableEntity^, Boolean)(ITableEntity, Boolean)(ITableEntity, Boolean)

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

System_CAPS_pubmethodInsertOrMerge(ITableEntity)(ITableEntity^)(ITableEntity)(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)(ITableEntity^)(ITableEntity)(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)(ITableEntity^)(ITableEntity)(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)(TableOperation^)(TableOperation)(TableOperation)

Removes the specified TableOperation item from the TableBatchOperation.

System_CAPS_pubmethodRemoveAt(Int32)(Int32)(Int32)(Int32)

Removes the TableOperation at the specified index from the TableBatchOperation.

System_CAPS_pubmethodReplace(ITableEntity)(ITableEntity^)(ITableEntity)(ITableEntity)

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

System_CAPS_pubmethodRetrieve(String, String)(String^, String^)(String, String)(String, String)

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

System_CAPS_pubmethodRetrieve<TResult><TResult><'TResult>(Of TResult)(String, String, EntityResolver<TResult>, List<String>)(String^, String^, EntityResolver<TResult>^, List<String^>^)(String, String, EntityResolver<'TResult>, List<String>)(String, String, EntityResolver(Of TResult), List(Of 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><TElement><'TElement>(Of TElement)(String, String, List<String>)(String^, String^, List<String^>^)(String, String, List<String>)(String, String, List(Of 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.)

Explicit Interface Implementations

Remarks

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.

Thread Safety

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