File: System\ComponentModel\ProgressChangedEvent.cs
Web Access
Project: src\src\libraries\System.ComponentModel.EventBasedAsync\src\System.ComponentModel.EventBasedAsync.csproj (System.ComponentModel.EventBasedAsync)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.ComponentModel
{
    public delegate void ProgressChangedEventHandler(object? sender, ProgressChangedEventArgs e);
 
    public class ProgressChangedEventArgs : EventArgs
    {
        private readonly int _progressPercentage;
        private readonly object? _userState;
 
        public ProgressChangedEventArgs(int progressPercentage, object? userState)
        {
            _progressPercentage = progressPercentage;
            _userState = userState;
        }
 
        public int ProgressPercentage
        {
            get
            {
                return _progressPercentage;
            }
        }
 
        public object? UserState
        {
            get
            {
                return _userState;
            }
        }
    }
}