Share via


PSWorkflowJob.StopJob Method

Definition

Overloads

StopJob()
StopJob(Boolean, String)

Stop Job

StopJob(Boolean, String, Boolean)

Stop Job

StopJob()

public:
 override void StopJob();
public:
 override void StopJob();
 override void StopJob();
public override void StopJob ();
override this.StopJob : unit -> unit
Public Overrides Sub StopJob ()

Applies to

StopJob(Boolean, String)

Stop Job

public:
 override void StopJob(bool force, System::String ^ reason);
public:
 override void StopJob(bool force, Platform::String ^ reason);
 override void StopJob(bool force, std::wstring const & reason);
public override void StopJob (bool force, string reason);
override this.StopJob : bool * string -> unit
Public Overrides Sub StopJob (force As Boolean, reason As String)

Parameters

force
Boolean

True to force stop

reason
String

Reason for forced stop

Applies to

StopJob(Boolean, String, Boolean)

Stop Job

public:
 void StopJob(bool force, System::String ^ reason, bool suppressError);
public:
 void StopJob(bool force, Platform::String ^ reason, bool suppressError);
void StopJob(bool force, std::wstring const & reason, bool suppressError);
public void StopJob (bool force, string reason, bool suppressError);
override this.StopJob : bool * string * bool -> unit
Public Sub StopJob (force As Boolean, reason As String, suppressError As Boolean)

Parameters

force
Boolean

True to force stop

reason
String

Reason for forced stop

suppressError
Boolean

Suppress error for forced stop

Applies to