Microsoft.TeamFoundation.VersionControl.Client.UpdateLocalVersionQueue.Flush C# (CSharp) Method

Flush() public method

public Flush ( ) : void
return void
        public void Flush()
        {
            if (updates.Count > 0)
                workspace.VersionControlService.UpdateLocalVersion(this);
            updates.Clear();
        }

Usage Example

        public void ResetDownloadStatus(int itemId)
        {
            var updateVer = new UpdateLocalVersion(itemId, string.Empty, 0);
            var queue     = new UpdateLocalVersionQueue(this);

            queue.QueueUpdate(updateVer);
            queue.Flush();
        }
All Usage Examples Of Microsoft.TeamFoundation.VersionControl.Client.UpdateLocalVersionQueue::Flush