Share via


ConditionHistoryEntry element

The required ConditionHistoryEntry element provides details about one of the past conditions on the printer.

ConditionHistoryEntry 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:ConditionHistoryEntry Id=integer
  
      Id
      = "xs:string">
  child elements
</wprt:ConditionHistoryEntry Id=integer>

Attributes

Attribute Type Required Description

Id

xs:string

No

Required. Must be an integer from 1 through 2147483647 (231-1).

Text value

None

Child elements

Element Description

Component

Identifies the component that the current DeviceCondition or ConditionHistoryEntry element describes

Name Element for parent DeviceCondition and ConditionHistoryEntry

Names the current error condition specified in a DeviceCondition or ConditionHistoryEntry element.

Severity

Specifies the severity level of the current DeviceCondition or ConditionHistoryEntry element.

Time

Specifies the time at which a condition occurred

Xxx

Any IHV-defined elements

Parent elements

Element Description

ConditionHistory

A collection of ConditionHistoryEntry elements that provide details about recent conditions and errors on the printer.

Remarks

The client can use the Id attribute to determine if an error condition is new or no longer exists. The WSD Print Service should not reuse the integer value for Id for as long as possible. This allows a client to keep track of each individual ConditionHistoryEntry.

IHVs cannot extend the allowed values for Id.

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:ConditionHistoryEntry Id="integer">
 <wprt:Time> data </wprt:Time>
  ...
 <wprt:Component> data </wprt:Component>
  ...
</wprt:ConditionHistoryEntry>

See also

Component

ConditionHistory

Name Element for parent DeviceCondition and ConditionHistoryEntry

Severity

Time

 

 

Send comments about this topic to Microsoft

Build date: 7/19/2012