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.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.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.SemiTrust Namespace