AWS SDK for .NET Documentation
DownloadedDirectoryProgressEvent Event
Amazon ► Amazon.S3.Transfer ► TransferUtilityDownloadDirectoryRequest ► DownloadedDirectoryProgressEvent
Did this page help you? Yes No Tell us about it...
The event for DownloadedDirectoryProgressEvent notifications. All subscribers will be notified when a new progress event is raised.

The DownloadedDirectoryProgressEvent is fired as data is downloaded from Amazon S3. The delegates attached to the event will be passed information detailing how much data has been downloaded as well as how much will be downloaded.

Declaration Syntax

C#

    public event EventHandler<DownloadDirectoryProgressArgs> DownloadedDirectoryProgressEvent

Remarks
Subscribe to this event if you want to receive DownloadedDirectoryProgressEvent notifications. Here is how:
1. Define a method with a signature similar to this one:
CopyC#

    private void displayProgress(object sender, DownloadDirectoryProgressArgs args)
    {
        Console.WriteLine(args);
    }

2. Add this method to the DownloadedDirectoryProgressEvent delegate's invocation list
CopyC#

    TransferUtilityDownloadDirectoryRequest request = new TransferUtilityDownloadDirectoryRequest();
    request.DownloadedDirectoryProgressEvent += displayProgress;

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)