Share via


PrinterStateReasons element

The required PrinterStateReasons element is a list of PrinterStateReason elements that describes all of the reasons why the printer is in its current state.

PrinterStateReasons 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:PrinterStateReasons>
  child elements
</wprt:PrinterStateReasons>

Attributes

There are no attributes.

Text value

None

Child elements

Element Description

PrinterStateReason

Specifies one piece of information about why the printer is in its current state.

Parent elements

Element Description

PrinterStatus

Contains the current status of printer-related information that is controlled by automata.

StatusSummary

Contains a summary of the printer's current status.

Remarks

PrinterStateReasons is a list of PrinterStateReason elements, each of which describes one reason for why the printer is in its current state.

The WSD Print Service informs a client about changes to the printer's status by sending a PrinterStatusSummaryEvent event. A client can directly query the printer's state by calling the GetPrinterElementsRequest operation.

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:PrinterStateReasons>
 <wprt:PrinterStateReason> data </wprt:PrinterStateReason>
  ...
</wprt:PrinterStateReasons>

See also

GetPrinterElementsRequest

PrinterStateReason

PrinterStatus

PrinterStatusSummaryEvent

StatusSummary

 

 

Send comments about this topic to Microsoft

Build date: 7/19/2012