TableOperation.InsertOrReplace Method

Windows Runtime Azure Storage Client Library

Creates a new table operation that inserts the given 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 entity As ITableEntity
Dim returnValue As TableOperation

returnValue = TableOperation.InsertOrReplace(entity)

Syntax

Visual Basic
Public Shared Function InsertOrReplace ( _
	entity As ITableEntity _
) As TableOperation
C#
public static TableOperation InsertOrReplace (
	ITableEntity entity
)
C++
public:
static TableOperation^ InsertOrReplace (
	ITableEntity^ entity
)
J#
public static TableOperation InsertOrReplace (
	ITableEntity entity
)
JScript
public static function InsertOrReplace (
	entity : ITableEntity
) : TableOperation

Parameters

entity

The ITableEntity object to be inserted or replaced.

Return Value

The TableOperation object.

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