ProgressChangedEventArgs ProgressChangedEventArgs ProgressChangedEventArgs ProgressChangedEventArgs Class

Definition

Provides data for the ProgressChanged event.

public ref class ProgressChangedEventArgs : EventArgs
public class ProgressChangedEventArgs : EventArgs
type ProgressChangedEventArgs = class
    inherit EventArgs
Public Class ProgressChangedEventArgs
Inherits EventArgs
Inheritance
ProgressChangedEventArgsProgressChangedEventArgsProgressChangedEventArgsProgressChangedEventArgs
Derived

Examples

The following code example shows how to use the ProgressChangedEventArgs class. This example is part of a larger example for the BackgroundWorker class.

// This event handler updates the progress bar.
void backgroundWorker1_ProgressChanged( Object^ /*sender*/, ProgressChangedEventArgs^ e )
{
   this->progressBar1->Value = e->ProgressPercentage;
}
// This event handler updates the progress bar.
private void backgroundWorker1_ProgressChanged(object sender,
    ProgressChangedEventArgs e)
{
    this.progressBar1.Value = e.ProgressPercentage;
}
' This event handler updates the progress bar.
Private Sub backgroundWorker1_ProgressChanged( _
ByVal sender As Object, ByVal e As ProgressChangedEventArgs) _
Handles backgroundWorker1.ProgressChanged

    Me.progressBar1.Value = e.ProgressPercentage

End Sub

Constructors

ProgressChangedEventArgs(Int32, Object) ProgressChangedEventArgs(Int32, Object) ProgressChangedEventArgs(Int32, Object) ProgressChangedEventArgs(Int32, Object)

Initializes a new instance of the ProgressChangedEventArgs class.

Properties

ProgressPercentage ProgressPercentage ProgressPercentage ProgressPercentage

Gets the asynchronous task progress percentage.

UserState UserState UserState UserState

Gets a unique user state.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also