共用方式為


Installed (TCP/IP)

TCP/IP 已安裝建構包含 MIB 表格列的物件 ID (OID) 及查閱值清單。 If any of the lookup values exists in the row, this algorithm returns TRUE. 大部分與印表機設定相關的查詢都應該判斷印表機的 MIB 中是否有儲存的特定值,然後傳回布林結果。 Installed 建構定義在 Tcpbidi.xsd 中。

Attribute Description
deviceIndex (Optional) A flag that, when TRUE, means that the associated algorithm must include the device index in the specified OID; when FALSE, a trailing zero is appended to the OID. The default value is FALSE. For more information, see the note on the page for Value.
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.
name 架構值的名稱。
oid MIB 資料表的資料列,作為 OID。
refreshInterval 輪詢間隔的值,以秒為單位。 預設值為 600 秒。

Code Example

In the following code example, the lookup algorithm retrieves the MIB table row from 1.3.6.1.2.1.43.13.4.1.9.<deviceIndex>. If this table row contains either 3 or 4, the query returns TRUE; otherwise the query returns FALSE.

<Property name="DuplexUnit">
  <Installed name="Installed" oid="1.3.6.1.2.1.43.13.4.1.9" deviceIndex="true">
    <Lookup value="3"/>
    <Lookup value="4"/>
  </Installed>
</Property>

上述範例會產生下列查詢:

\Printer.Configuration.DuplexUnit:Installed