InputParameterObject 接口
表示可以通过命令行或统一资源定位器 (URL) 名称/值对传递到新表单实例的值。
命名空间: Microsoft.Office.Interop.InfoPath.SemiTrust
程序集: Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)
语法
声明
<GuidAttribute("096cd5b5-0786-11d1-95fa-0080c78ee3bb")> _
Public Interface InputParameterObject _
Inherits InputParameter
用法
Dim instance As InputParameterObject
[GuidAttribute("096cd5b5-0786-11d1-95fa-0080c78ee3bb")]
public interface InputParameterObject : InputParameter
备注
此类型是用于 Coclass(托管代码需要此 Coclass 来实现 COM 互操作性)的包装。使用此类型来访问由此 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
备注
如果通过 InfoPath Forms Services 将表单模板发布到 Microsoft SharePoint Server 2010,则通过 URL 使用输入参数时,可能存在由服务器自动插入的其他名称/值对。如果使用 URL 而不是 /InputParameters 命令行选项,则特定输入参数可能具有不同的索引值。