共用方式為


operation 元素

指定要產生程式代碼的作業。

用法

<operation/>

屬性

沒有屬性。

子專案

沒有子專案。

父元素

元素 描述
functionDeclarations
產生埠類型作業之 Proxy 函式的實作宣告。

idlFunctionDeclarations
為埠類型作業的 Proxy 函式產生 IDL 宣告。

messageStructureDefinitions
產生訊息類型的 C 結構定義。

messageTypeDeclarations
產生訊息類型的 XML 架構數據表的 C 常數宣告。

messageTypeDefinitions
為訊息類型產生 XML 架構數據表的 C 常數。

portTypeDeclarations
產生埠類型的 C 常數宣告。

portTypeDefinitions
產生埠類型的 C 常數。

proxyFunctionImplementations
為埠類型作業產生 Proxy 函式的實作。

stubDeclarations
產生埠類型作業之存根函式的宣告。

stubDefinitions
產生埠類型作業之存根函式的實作。

subscriptionFunctionDeclarations
針對埠類型通知作業,產生訂閱/取消訂閱 Proxy 函式的實作宣告。

subscriptionIdlFunctionDeclarations
針對埠類型通知作業,產生訂閱/取消訂閱 Proxy 函式的IDL宣告。

subscriptionProxyFunctionImplementations
針對埠類型通知作業,產生訂閱/取消訂閱 Proxy 函式的實作。

言論

可以指定任意數目的作業。 如果未指定任何作業,則會針對所有相關埠類型中的所有作業產生程式碼。 使用 作業 專案會將產生的方法限製為作業中包含的方法。

例如,印表機支援下列作業:

  • PrintJobByPost
  • PrintJobByReference
  • CancelJob
  • GetJobElements
  • GetActiveJobs
  • GetJobHistory
  • SubscribeToPrinterConfigChange
  • UnsubscribeToPrinterConfigChange

不過,若要只包含與 PrintJobByPostGetJobElements 作業相關的方法,程式代碼產生腳本會使用 idlFunctionDeclarations 元素,如下所示:

<idlFunctionDeclarations>
    <operation>PrintJobByPost</operation>
    <operation>GetJobElements></operation>
</idlFunctionDeclarations>

這會產生與兩個作業相關聯之所有方法的 idl 函數宣告(例如,BeginPrintJobByPostEndPrintJobByPostBeginGetJobElementsEndGetJobElements)。

元素資訊

標籤 價值
最低支援的系統
Windows Vista
可以是空的 是的