JobCompletedStateReasons element

The required JobCompletedStateReasons element is a collection of all additional information about how and why a job completed.

JobCompletedStateReasons is defined in the namespace at this URI: https://schemas.microsoft.com/windows/2005/05/wdp/print and referenced by the prefix wprt. (This resource may not be available in some languages and countries.)

Usage

<wprt:JobCompletedStateReasons>
  child elements
</wprt:JobCompletedStateReasons>

Attributes

There are no attributes.

Text value

None

Child elements

Element Description

JobStateReason

Specifies one reason why a job is in its current state.

Parent elements

Element Description

JobEndState

Describes the end state of the current job.

Remarks

The JobCompletedStateReasons element contains zero or more JobStateReason elements, each of which contains a reason for how and/or why the job completed. The WSD Print Service sends the JobCompletedStateReasons element to the client through the JobEndStateEvent event.

The following syntax block shows that you must also prefix the names of the child elements with the appropriate namespace (in this case wprt), to be certain that your name references apply to child elements in the correct namespace.

<wprt:JobCompletedStateReasons>
 <wprt:JobStateReason> data </wprt:JobStateReason>
  ...
</wprt:JobCompletedStateReasons>

See also

JobEndState

JobEndStateEvent

JobStateReason

JobStateReasons

 

 

Send comments about this topic to Microsoft

Build date: 7/19/2012