Web Services for Devices (WSD) のインストール済みコンストラクトは、特定の条件セットに一致するプリンター機能がインストールされているかどうかを示します。 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 モニターが実行するクエリの種類。 |
Microsoft XML (MSXML) 2.6 以降の Windows で実装されている XPath 言語は、XML ファイル内の要素を指定する便利な方法を提供します。 See the XPath Reference for more information.
インストールされたコンストラクトの動作は、その親ノードの定義によって異なります。 パラメーターを使用せずにインストール済みコンストラクトが指定されている場合、スキーマはクエリ時に常に存在します。 パラメーターを使用してインストール済みコンストラクトが指定されている場合、スキーマは、関連付けられているパラメーター値が現在の 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