Edit

Share via


_XDocument4.InputParameters Property

Definition

Gets an InputParameterCollection object containing any input parameters specified using the /InputParameters command-line option, or specified using query parameters in a URL.

public:
 property Microsoft::Office::Interop::InfoPath::InputParameterCollection ^ InputParameters { Microsoft::Office::Interop::InfoPath::InputParameterCollection ^ get(); };
public Microsoft.Office.Interop.InfoPath.InputParameterCollection InputParameters { get; }
member this.InputParameters : Microsoft.Office.Interop.InfoPath.InputParameterCollection
Public ReadOnly Property InputParameters As InputParameterCollection

Property Value

An InputParameterCollection object containing input parameters.

Implements

Examples

In the following example, an InfoPath form template is opened from the command line using the following syntax:

infopath.exe "C:\User Forms\DeptReport.xsn" /InputParameters "Dept=Accounting"

string vDept = (_XDocument4)thisXDocument.InputParameters["Dept"];
Dim vDept As String = 
   DirectCast(thisXDocument, _XDocument4).InputParameters("Dept")

In the following example, an InfoPath form template is opened from the command line using the following syntax:

infopath.exe "C:\User Forms\DeptReport.xsn" /InputParameters "Dept=Accounting"

string vDept = (_XDocument4)thisXDocument.InputParameters["Dept"];
Dim vDept As String = 
   DirectCast(thisXDocument, _XDocument4).InputParameters("Dept")

Remarks

Input parameters consist of one or more name/value pairs separated by the ampersand (&) character that are specified when a form template is opened from the command line or a batch file using the /InputParameters command-line option. Input parameters can also be specified using query parameters when a form template is opened from a URL.

Applies to