TableBatchOperation.InsertOrReplace 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 replaced 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.InsertOrReplace(entity)

Syntax

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

Parameters

entity

The entity whose contents are being inserted or replaced.

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