InputParameterObject interface

Represents values that can be passed to a new instance of a form through command-line or Uniform Resource Locator (URL) name/value pairs.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
<GuidAttribute("096CD5B5-0786-11D1-95FA-0080C78EE3BB")> _
Public Interface InputParameterObject _
    Inherits InputParameter
'Usage
Dim instance As InputParameterObject
[GuidAttribute("096CD5B5-0786-11D1-95FA-0080C78EE3BB")]
public interface InputParameterObject : InputParameter

Remarks

This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, seeInputParameter.

The InputParameter object contains a name/value pair for each parameter passed to InfoPath through a command-line, using the /InputParameters option, or through a URL string. The following syntax will open a new InfoPath form based on the form template specified and with two name/value input parameter pairs:

  • Command-line:

    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
    

Note

If the form template is published to Microsoft SharePoint Server 2010 with InfoPath Forms Services, there may be other name/value pairs that are automatically inserted by the server when input parameters are used with a URL. Specific input parameters may have different index values when using a URL than when using the /InputParameters command-line option.

See also

Reference

InputParameterObject members

Microsoft.Office.Interop.InfoPath namespace