Udostępnij za pośrednictwem


TableOperation.Retrieve Method

Definition

Overloads

Retrieve(String, String, List<String>)

Creates a new table operation that retrieves the contents of the given entity in a table.

Retrieve<TElement>(String, String, List<String>)

Creates a new table operation that retrieves the contents of the given entity in a table.

Retrieve<TResult>(String, String, EntityResolver<TResult>, List<String>)

Creates a new table operation that retrieves the contents of the given entity in a table.

Retrieve(String, String, List<String>)

Creates a new table operation that retrieves the contents of the given entity in a table.

public static Microsoft.Azure.Cosmos.Table.TableOperation Retrieve (string partitionKey, string rowkey, System.Collections.Generic.List<string> selectedColumns = default);
static member Retrieve : string * string * System.Collections.Generic.List<string> -> Microsoft.Azure.Cosmos.Table.TableOperation
Public Shared Function Retrieve (partitionKey As String, rowkey As String, Optional selectedColumns As List(Of String) = Nothing) As TableOperation

Parameters

partitionKey
String

A string containing the partition key of the entity to be retrieved.

rowkey
String

A string containing the row key of the entity to be retrieved.

selectedColumns
List<String>

List of column names for projection.

Returns

The TableOperation object.

Applies to

Retrieve<TElement>(String, String, List<String>)

Creates a new table operation that retrieves the contents of the given entity in a table.

public static Microsoft.Azure.Cosmos.Table.TableOperation Retrieve<TElement> (string partitionKey, string rowkey, System.Collections.Generic.List<string> selectColumns = default) where TElement : Microsoft.Azure.Cosmos.Table.ITableEntity;
static member Retrieve : string * string * System.Collections.Generic.List<string> -> Microsoft.Azure.Cosmos.Table.TableOperation (requires 'Element :> Microsoft.Azure.Cosmos.Table.ITableEntity)
Public Shared Function Retrieve(Of TElement As ITableEntity) (partitionKey As String, rowkey As String, Optional selectColumns As List(Of String) = Nothing) As TableOperation

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.

selectColumns
List<String>

List of column names for projection.

Returns

The TableOperation object.

Applies to

Retrieve<TResult>(String, String, EntityResolver<TResult>, List<String>)

Creates a new table operation that retrieves the contents of the given entity in a table.

public static Microsoft.Azure.Cosmos.Table.TableOperation Retrieve<TResult> (string partitionKey, string rowkey, Microsoft.Azure.Cosmos.Table.EntityResolver<TResult> resolver, System.Collections.Generic.List<string> selectedColumns = default);
static member Retrieve : string * string * Microsoft.Azure.Cosmos.Table.EntityResolver<'Result> * System.Collections.Generic.List<string> -> Microsoft.Azure.Cosmos.Table.TableOperation
Public Shared Function Retrieve(Of TResult) (partitionKey As String, rowkey As String, resolver As EntityResolver(Of TResult), Optional selectedColumns As List(Of String) = Nothing) As TableOperation

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.

Returns

The TableOperation object.

Applies to