Share via


PSActivity.WriteProgressRecord Method

Definition

Write a progress record fo the current activity

protected:
 void WriteProgressRecord(System::Activities::NativeActivityContext ^ context, System::Management::Automation::PSDataCollection<System::Management::Automation::ProgressRecord ^> ^ progress, System::String ^ statusDescription, System::Management::Automation::ProgressRecordType type);
protected void WriteProgressRecord (System.Activities.NativeActivityContext context, System.Management.Automation.PSDataCollection<System.Management.Automation.ProgressRecord> progress, string statusDescription, System.Management.Automation.ProgressRecordType type);
member this.WriteProgressRecord : System.Activities.NativeActivityContext * System.Management.Automation.PSDataCollection<System.Management.Automation.ProgressRecord> * string * System.Management.Automation.ProgressRecordType -> unit
Protected Sub WriteProgressRecord (context As NativeActivityContext, progress As PSDataCollection(Of ProgressRecord), statusDescription As String, type As ProgressRecordType)

Parameters

context
NativeActivityContext

Workflow engine context

progress
PSDataCollection<ProgressRecord>

The progress stream to write to

statusDescription
String

The status string to display

type
ProgressRecordType

the Progress record type

Applies to