sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/OperationsQueue.cs
/// <summary>
/// Deletes operations in the queue identified by the query.
/// </summary>
/// <param name="query">The query identifying the operations to be deleted.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that completes when the operation is finished.</returns>
Deletes operations in the queue identified by the query.
Deletes operations in the queue identified by the query .
public async Task DeleteOperationsAsync(QueryDescription query, CancellationToken cancellationToken = default)
        {
            using (await AcquireLockAsync(cancellationToken).ConfigureAwait(false))
            {
                EnsureQueueIsInitialized();
                if (query.TableName != SystemTables.OperationsQueue)
                {
                    throw new InvalidOperationException("To delete an operation in the operations queue by query, ensure the operations queue is the target.");
                }
                await OfflineStore.DeleteAsync(query, cancellationToken).ConfigureAwait(false);
            }
        }
public async Task DeleteOperationsAsync ( QueryDescription query , CancellationToken cancellationToken = default ) { using ( await AcquireLockAsync ( cancellationToken ) . ConfigureAwait ( false ) ) { EnsureQueueIsInitialized ( ) ; if ( query . TableName != SystemTables . OperationsQueue ) { throw new InvalidOperationException ( " " ) ; } await OfflineStore . DeleteAsync ( query , cancellationToken ) . ConfigureAwait ( false ) ; } }
Deletes operations in the queue identified by the query.
Deletes operations in the queue identified by the query .
A task that completes when the operation is finished.
A task that completes when the operation is finished .
query
QueryDescription
The query identifying the operations to be deleted.
The query identifying the operations to be deleted .
cancellationToken
CancellationToken
A  to observe.
A to observe .