TableBatchOperation.Retrieve Method

Definition

Overloads

Retrieve(String, String)

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

Retrieve<TElement>(String, String, List<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.

Retrieve<TResult>(String, String, EntityResolver<TResult>, List<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.

Retrieve(String, String)

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

public void Retrieve (string partitionKey, string rowKey);
member this.Retrieve : string * string -> unit
Public Sub Retrieve (partitionKey As String, rowKey As String)

Parameters

partitionKey
String

A string containing the partition key of the entity to retrieve.

rowKey
String

A string containing the row key of the entity to retrieve.

Applies to

Retrieve<TElement>(String, String, List<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.

public void Retrieve<TElement> (string partitionKey, string rowKey, System.Collections.Generic.List<string> selectedColumns = default) where TElement : Microsoft.Azure.Cosmos.Table.ITableEntity;
member this.Retrieve : string * string * System.Collections.Generic.List<string> -> unit (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity)
Public Sub Retrieve(Of TElement As ITableEntity) (partitionKey As String, rowKey As String, Optional selectedColumns As List(Of String) = Nothing)

Type Parameters

TElement

The class of type for the entity to retrieve.

Parameters

partitionKey
String

A string containing the partition key of the entity to retrieve.

rowKey
String

A string containing the row key of the entity to retrieve.

selectedColumns
List<String>

List of column names for projection.

Applies to

Retrieve<TResult>(String, String, EntityResolver<TResult>, List<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.

public void Retrieve<TResult> (string partitionKey, string rowKey, Microsoft.Azure.Cosmos.Table.EntityResolver<TResult> resolver, System.Collections.Generic.List<string> selectedColumns = default);
member this.Retrieve : string * string * Microsoft.Azure.Cosmos.Table.EntityResolver<'Result> * System.Collections.Generic.List<string> -> unit
Public Sub Retrieve(Of TResult) (partitionKey As String, rowKey As String, resolver As EntityResolver(Of TResult), Optional selectedColumns As List(Of String) = Nothing)

Type Parameters

TResult

The return type which the specified EntityResolver<T> will resolve the given entity to.

Parameters

partitionKey
String

A string containing the partition key of the entity to retrieve.

rowKey
String

A string containing the row key of the entity to retrieve.

resolver
EntityResolver<TResult>

The EntityResolver<T> implementation to project the entity to retrieve as a particular type in the result.

selectedColumns
List<String>

List of column names for projection.

Applies to