sdk/dotnet/src/Microsoft.Datasync.Client/Offline/SyncContext.cs
/// <summary>
/// Discards operations within the operations queue for a specific table.
/// </summary>
/// <param name="tableName">The name of the table.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
Discards operations within the operations queue for a specific table.
Discards operations within the operations queue for a specific table .
internal async Task DiscardTableOperationsAsync(string tableName, CancellationToken cancellationToken)
        {
            Arguments.IsValidTableName(tableName, nameof(tableName));
            EnsureContextIsInitialized();
            var query = QueryDescription.Parse(SystemTables.OperationsQueue, $"$filter=(tableName eq '{tableName}')");
            await OperationsQueue.DeleteOperationsAsync(query, cancellationToken).ConfigureAwait(false);
        }
internal async Task DiscardTableOperationsAsync ( string tableName , CancellationToken cancellationToken ) { Arguments . IsValidTableName ( tableName , nameof ( tableName ) ) ; EnsureContextIsInitialized ( ) ; var query = QueryDescription . Parse ( SystemTables . OperationsQueue , $" $filter=(tableName eq ' { tableName } ') " ) ; await OperationsQueue . DeleteOperationsAsync ( query , cancellationToken ) . ConfigureAwait ( false ) ; }
Discards operations within the operations queue for a specific table.
Discards operations within the operations queue for a specific table .
tableName
string
The name of the table.
The name of the table .
cancellationToken
CancellationToken
A  to observe.
A to observe .