共用方式為


InputParameterObject 介面

代表可以透過命令列或統一資源定位器 (URL) 名稱/值組傳遞給新表單執行個體的值。

**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)

語法

'宣告
<GuidAttribute("096CD5B5-0786-11D1-95FA-0080C78EE3BB")> _
<CoClassAttribute(GetType(InputParameterObjectClass))> _
Public Interface InputParameterObject
    Inherits InputParameter
'用途
Dim instance As InputParameterObject
[GuidAttribute("096CD5B5-0786-11D1-95FA-0080C78EE3BB")] 
[CoClassAttribute(typeof(InputParameterObjectClass))] 
public interface InputParameterObject : InputParameter

備註

此類型為 coclass 的包裝函式,屬於 COM 互通性中 Managed 程式碼的必要項。使用此類型,即可存取由此 coclass 實作的 COM 介面成員。如需 COM 介面 (包括其成員說明連結) 的詳細資訊,請參閱 InputParameter

InputParameter 物件包含透過命令列 (使用 /InputParameters 選項) 或透過 URL 字串傳遞給 InfoPath 之每一個參數的名稱/值組。下列語法將會根據指定的表單範本及兩個輸入參數名稱/值組來開啟新的 InfoPath 表單。

  • 命令列:

    infopath.exe "C:\User Forms\DeptReport.xsn" /InputParameters "Dept=Accounting&Class=Introduction"
    
  • URL:

    https://server/sites/team/training/Forms/template.xsn?Dept=Accounting&Class=Introduction
    

注意

如果此表單範本發佈到 Microsoft Office Forms Server 2007 或具有 InfoPath Forms Services 的 Microsoft Office SharePoint Server 2007,則當搭配 URL 使用輸入參數時,可能會有伺服器所自動插入的其他名稱/值組。特定輸入參數在使用 URL 與使用 /InputParameters 命令列選項時,可能會有不同的索引值。

請參閱

參考

InputParameterObject 成員
Microsoft.Office.Interop.InfoPath 命名空間