_XDocument3.InputParameters Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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")
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")
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.