Share via


ProgressRecordType Enum

Definition

Defines two types of progress record that refer to the beginning (or middle) and end of an operation.

public enum class ProgressRecordType
public enum ProgressRecordType
type ProgressRecordType = 
Public Enum ProgressRecordType
Inheritance
ProgressRecordType

Fields

Completed 1

Operation is complete.

If a cmdlet uses WriteProgress, it should use ProgressRecordType.Completed exactly once, in the last call to WriteProgress.

Processing 0

Operation just started or is not yet complete.

A cmdlet can call WriteProgress with ProgressRecordType.Processing as many times as it wishes. However, at the end of the operation, it should call once more with ProgressRecordType.Completed.

The first time that a host receives a progress record for a given activity, it will typically display a progress indicator for that activity. For each subsequent record of the same Id, the host will update that display. Finally, when the host receives a 'completed' record for that activity, it will remove the progress indicator.

Applies to