_XDocument3.InputParameters property
Gets an InputParameterCollection object containing any input parameters specified using the /InputParameters command-line option, or specified using query parameters in a URL.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
ReadOnly Property InputParameters As InputParameterCollection
Get
'Usage
Dim instance As _XDocument3
Dim value As InputParameterCollection
value = instance.InputParameters
InputParameterCollection InputParameters { get; }
Property value
Type: Microsoft.Office.Interop.InfoPath.InputParameterCollection
An InputParameterCollection object containing input parameters.
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.
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 = (_XDocument3)thisXDocument.InputParameters["Dept"];
Dim vDept As String =
DirectCast(thisXDocument, _XDocument3).InputParameters("Dept")