共用方式為


TableOperation.InsertOrReplace(ITableEntity) Method

Definition

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.

public static Microsoft.Azure.Cosmos.Table.TableOperation InsertOrReplace (Microsoft.Azure.Cosmos.Table.ITableEntity entity);
static member InsertOrReplace : Microsoft.Azure.Cosmos.Table.ITableEntity -> Microsoft.Azure.Cosmos.Table.TableOperation
Public Shared Function InsertOrReplace (entity As ITableEntity) As TableOperation

Parameters

entity
ITableEntity

The ITableEntity object to be inserted or replaced.

Returns

The TableOperation object.

Applies to