共用方式為


ScannerStatusConditionClearedEvent 元素

必要的 ScannerStatusConditionClearedEvent 元素會通知用戶端先前回報的 DeviceCondition 條件已在掃描器上清除。

使用方式

<wscn:ScannerStatusConditionClearedEvent>
  child elements
</wscn:ScannerStatusConditionClearedEvent>

屬性

沒有屬性。

子元素

元素
DeviceConditionCleared

父元素

沒有父元素。

備註

已清除 ScannerStatusConditionEvent 中所識別的裝置條件時,WSD 掃描服務會傳送 ScannerStatusConditionClearedEvent 元素。 ScannerStatusConditionClearedEvent 包含 DeviceConditionCleared 元素,其中包含已清除的條件和清除的時間。

範例

下列程式代碼範例示範裝置如何通知用戶端,指出已清除 ConditionId 1543 的先前條件:

<soap:Envelope
  xmlns:soap="https://www.w3.org/2003/05/soap-envelope"
  xmlns:wsa="https://schemas.xmlsoap.org/ws/2004/08/addressing"
  xmlns:wse="https://schemas.xmlsoap.org/ws/2004/08/eventing"
  xmlns:wscn="https://schemas.microsoft.com/windows/2006/01/wdp/scan"
  soap:encodingStyle='https://www.w3.org/2002/12/soap-encoding'>

  <soap:Header>
    <wsa:To>AddressofEventSink</wsa:To>
    <wsa:Action>
      https://schemas.microsoft.com/windows/2006/01/wdp/scan/ScannerStatusConditionClearedEvent
    </wsa:Action>
    <wsa:MessageID>uuid:UniqueMsgId</wsa:MessageID>
  </soap:Header>

  <soap:Body>
    <wscn:ScannerStatusConditionClearedEvent>
      <wscn:DeviceConditionCleared>
        <wscn:ConditionId>1543</wscn:ConditionId>
        <wscn:ConditionClearTime>
          2006-01-21T17:22:35.8345Z
        </wscn:ConditionClearTime>
      </wscn:DeviceConditionCleared>
    </wscn:ScannerStatusConditionClearedEvent>
  </soap:Body
</soap:Envelope>

另請參閱

ConditionId

DeviceCondition

DeviceConditionCleared

ScannerStatusConditionEvent