Edit

Share via


_XDocument3.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::SemiTrust::InputParameterCollection ^ InputParameters { Microsoft::Office::Interop::InfoPath::SemiTrust::InputParameterCollection ^ get(); };
public Microsoft.Office.Interop.InfoPath.SemiTrust.InputParameterCollection InputParameters { get; }
member this.InputParameters : Microsoft.Office.Interop.InfoPath.SemiTrust.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.

Because the InputParameters property is new to Microsoft InfoPath, you must declare and cast to the _XDocument3 type to access this method. For more information, see How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Applies to