sdk/dotnet/src/Microsoft.Datasync.Client/Offline/SyncContext.cs
/// <summary>
/// Retrieve an item from the offline table.
/// </summary>
/// <param name="tableName">The name of the offline table.</param>
/// <param name="id">The ID of the item to retrieve.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that returns the item when complete.</returns>
Retrieve an item from the offline table.
Retrieve an item from the offline table .
public async Task<JObject> GetItemAsync(string tableName, string id, CancellationToken cancellationToken = default)
        {
            EnsureContextIsInitialized();
            return await OfflineStore.GetItemAsync(tableName, id, cancellationToken).ConfigureAwait(false);
        }
public async Task < JObject > GetItemAsync ( string tableName , string id , CancellationToken cancellationToken = default ) { EnsureContextIsInitialized ( ) ; return await OfflineStore . GetItemAsync ( tableName , id , cancellationToken ) . ConfigureAwait ( false ) ; }
Retrieve an item from the offline table.
Retrieve an item from the offline table .
A task that returns the item when complete.
A task that returns the item when complete .
tableName
string
The name of the offline table.
The name of the offline table .
id
string
The ID of the item to retrieve.
The ID of the item to retrieve .
cancellationToken
CancellationToken
A  to observe.
A to observe .