Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ProgressChangedEventArgs Class

Definition

Namespace:
System.ComponentModel
Assemblies:
System.dll, System.ComponentModel.EventBasedAsync.dll
Assemblies:
netstandard.dll, System.ComponentModel.EventBasedAsync.dll
Assembly:
System.ComponentModel.EventBasedAsync.dll
Assembly:
System.dll
Assembly:
netstandard.dll
Source:
ProgressChangedEvent.cs
Source:
ProgressChangedEvent.cs
Source:
ProgressChangedEvent.cs
Source:
ProgressChangedEvent.cs
Source:
ProgressChangedEvent.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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
ProgressChangedEventArgs
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.
void backgroundWorker1_ProgressChanged(object sender,
 ProgressChangedEventArgs e) => 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

 progressBar1.Value = e.ProgressPercentage

End Sub

Constructors

Name Description
ProgressChangedEventArgs(Int32, Object)

Initializes a new instance of the ProgressChangedEventArgs class.

Properties

Name Description
ProgressPercentage

Gets the asynchronous task progress percentage.

UserState

Gets a unique user state.

Methods

Name Description
Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also


Feedback

Was this page helpful?