Table.GetItemAsync Method (Primitive, Primitive, GetItemOperationConfig, CancellationToken)

.NET Framework 4.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...
Initiates the asynchronous execution of the GetItem operation.

Namespace: Amazon.DynamoDBv2.DocumentModel
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
public Task<Document> GetItemAsync(
         Primitive hashKey,
         Primitive rangeKey,
         GetItemOperationConfig config,
         CancellationToken cancellationToken
)

Parameters

hashKey
Type: Amazon.DynamoDBv2.DocumentModel.Primitive

Hash key element of the document.

rangeKey
Type: Amazon.DynamoDBv2.DocumentModel.Primitive

Range key element of the document.

config
Type: Amazon.DynamoDBv2.DocumentModel.GetItemOperationConfig

Configuration to use.

cancellationToken
Type: System.Threading.CancellationToken

Token which can be used to cancel the task.

Return Value
System.Threading.Tasks.Task`1[[Amazon.DynamoDBv2.DocumentModel.Document, AWSSDK, Version=2.0.0.3, Culture=neutral, PublicKeyToken=9f476d3089b52be3]] A Task that can be used to poll or wait for results, or both.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8

.NET for Windows Phone:
Supported in: Window Phone 8