AWS SDK for .NET Documentation
WriteObjectProgressEvent Event
Amazon ► Amazon.S3.Model ► GetObjectResponse ► WriteObjectProgressEvent
Did this page help you? Yes No Tell us about it...
The event for Write Object progress notifications. All subscribers will be notified when a new progress event is raised.
Declaration Syntax

C#

    public event EventHandler<WriteObjectProgressArgs> WriteObjectProgressEvent

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

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

2. Add this method to the Put Object Progress Event delegate's invocation list
CopyC#

    GetObjectResponse response = s3Client.GetObject(request);
    response.WriteObjectProgressEvent += displayProgress;

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