다음을 통해 공유


Installed (WSD)

WSD(Web Services for Devices) Installed 구문은 지정된 조건 집합과 일치하는 프린터 기능이 설치되었는지 여부를 나타냅니다. If an XPath filter obtains a valid XML result when applied to the given criteria, this algorithm returns TRUE. The Installed construct is defined in WsdBidi.xsd.

Attribute Description
drvPrinterEvent (선택 사항) 포트 모니터가 드라이버에 알림을 보내는지 여부를 나타내는 부울 값입니다. A TRUE value indicates that the port monitor sends notifications to the driver; FALSE indicates that the port monitor does not send notifications to the driver.
filter WSD 모니터가 쿼리에서 지정한 XML 문서에 적용되는 XPath 쿼리입니다. 이 항목의 뒷부분에 있는 토론을 참조하세요.
name 스키마 값의 이름입니다.
query WSD 모니터가 수행할 쿼리 유형입니다.

MsXML(Microsoft XML) 2.6부터 Windows에서 구현된 XPath 언어는 XML 파일에서 요소를 지정하는 편리한 방법을 제공합니다. See the XPath Reference for more information.

Installed 구문의 동작은 부모 노드의 정의에 따라 달라집니다. 매개 변수를 사용하지 않고 Installed 구문을 지정하면 쿼리할 때 스키마가 항상 존재합니다. 매개 변수를 사용하여 설치된 구문을 지정하면 현재 WSD 디바이스 쿼리에 연결된 매개 변수 값이 있는 경우에만 스키마가 존재합니다. 쿼리를 만드는 소프트웨어는 설치된 스키마가 반환되지 않는 경우를 처리할 수 있어야 합니다.

The Installed construct is defined in WsdBidi.xsd.

Code example

다음 코드 예제에서 필터 조회 알고리즘은 XPath 쿼리를 사용하여 하드 디스크가 설치되어 있는지 확인합니다.

<Schema>
  <Property name='Printer'>
    <Property name='Configuration'>
      <Property name='HardDisk'>
        <Installed name='Installed'
            query='wprt:PrinterConfiguration'
            filter='wprt:PrinterConfiguration/wprt:Storage/wprt:StorageEntry[wprt:Type="HardDisk"]'/>
      </Property>
    </Property>
  </Property>
</Schema>

위의 예제에서는 다음 쿼리를 생성합니다.

\Printer.Configuration.HardDisk:Installed