Share via


PSJobProxy.StopJob Method

Definition

Overloads

StopJob()

Stop a job synchronously. In order to be consistent, this method should be used in place of StopJob which was introduced in the v2 Job API

StopJob(Boolean, String)

StopJob

StopJob()

Stop a job synchronously. In order to be consistent, this method should be used in place of StopJob which was introduced in the v2 Job API

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

Exceptions

Thrown if job is blocked.

Thrown if job is disposed.

Applies to

StopJob(Boolean, String)

StopJob

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
reason
String

Applies to