Share via


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

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 Microsoft.Office.Interop.InfoPath.SemiTrust 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.

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")

See also

Reference

_XDocument3 interface

_XDocument3 members

Microsoft.Office.Interop.InfoPath.SemiTrust namespace