Show / Hide Table of Contents

Class ProgressMonitor

Provides a way for background workers to report their progress.

Inheritance
object
NotificationObject
ProgressMonitor
Implements
INotifyPropertyChanged
Inherited Members
NotificationObject.PropertyChanged
NotificationObject.RaisePropertyChanged(string)
NotificationObject.OnPropertyChanged(string)
NotificationObject.ResumePropertyEvents()
NotificationObject.SuspendPropertyEvents()
NotificationObject.PropertyEventsSuspended
NotificationObject.PropagateChildChanges(INotifyCollectionChanged, string)
NotificationObject.WatchProperties()
NotificationObject.WatchProperty(INotifyPropertyChanged, string)
NotificationObject.WatchCollection(INotifyCollectionChanged, string)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public class ProgressMonitor : NotificationObject, INotifyPropertyChanged

Properties

IsBounded

Gets or sets a value indicating whether the amount of work to be completed is known.

Declaration
public bool IsBounded { get; set; }
Property Value
Type Description
bool

TaskName

Gets or sets the name of the task for which progress is being monitored.

Declaration
public string TaskName { get; set; }
Property Value
Type Description
string

The name of the task.

Methods

ReportProgress(int, object)

Reports progress toward the task.

Declaration
public void ReportProgress(int percent, object userState)
Parameters
Type Name Description
int percent

The percent of work already complete.

object userState

A user-defined object.

ReportProgress(long, long, object)

Reports progress toward the task.

Declaration
public void ReportProgress(long complete, long total, object userState)
Parameters
Type Name Description
long complete

The amount of work already complete.

long total

The total work to be completed.

object userState

A user-defined object.

ReportProgress(object)

Raises the ProgressChanged event.

Declaration
public void ReportProgress(object userState)
Parameters
Type Name Description
object userState

User state, which may be displayed as a message.

Events

ProgressChanged

Occurs when progress has changed.

Declaration
public event ProgressChangedEventHandler ProgressChanged
Event Type
Type Description
ProgressChangedEventHandler

Implements

INotifyPropertyChanged

Extension Methods

Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX