TableBatchOperation.InsertOrMerge Method

Windows Runtime Azure Storage Client Library

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.

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

Usage

Visual Basic
Dim instance As TableBatchOperation
Dim entity As ITableEntity

instance.InsertOrMerge(entity)

Syntax

Visual Basic
Public Sub InsertOrMerge ( _
	entity As ITableEntity _
)
C#
public void InsertOrMerge (
	ITableEntity entity
)
C++
public:
void InsertOrMerge (
	ITableEntity^ entity
)
J#
public void InsertOrMerge (
	ITableEntity entity
)
JScript
public function InsertOrMerge (
	entity : ITableEntity
)

Parameters

entity

The entity whose contents are being inserted or merged.

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.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also