sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/OperationBatch.cs
/// <summary>
/// Changes the status of the batch to aborted with a specific reason.
/// </summary>
/// <param name="reason">The abort reason.</param>
/// <exception cref="ArgumentException">If the abort reason doesn't indicate an abort.</exception>
Changes the status of the batch to aborted with a specific reason.
Changes the status of the batch to aborted with a specific reason .
public void Abort(PushStatus reason)
        {
            if (reason == PushStatus.Complete)
            {
                throw new ArgumentException("Invalid reason (Complete is not aborted).", nameof(reason));
            }
            AbortReason = reason;
        }
public void Abort ( PushStatus reason ) { if ( reason == PushStatus . Complete ) { throw new ArgumentException ( " " , nameof ( reason ) ) ; } AbortReason = reason ; }
Changes the status of the batch to aborted with a specific reason.
Changes the status of the batch to aborted with a specific reason .
If the abort reason doesn't indicate an abort.
If the abort reason doesn ' t indicate an abort .
reason
PushStatus
The abort reason.
The abort reason .