XDocuments3.NewFromSolutionWithInputParameters Method
Creates a new form using the specified form template with the specified form template and input parameters.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
Function NewFromSolutionWithInputParameters ( _
varSolutionURI As Object, _
varInputParams As Object _
) As XDocument
'Usage
Dim instance As XDocuments3
Dim varSolutionURI As Object
Dim varInputParams As Object
Dim returnValue As XDocument
returnValue = instance.NewFromSolutionWithInputParameters(varSolutionURI, _
varInputParams)
XDocument NewFromSolutionWithInputParameters(
Object varSolutionURI,
Object varInputParams
)
Parameters
varSolutionURI
Type: System.ObjectThe Uniform Resource Identifier (URI) of the form template on which to base the new form.
varInputParams
Type: System.ObjectOne or more name/value pairs separated by the ampersand (&) character.
Return Value
Type: Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument
An XDocument that represents the new form.
Remarks
To use the input parameters passed to the varInputParams parameter, the form specified in the varSolutionURI parameter must contain a OnLoad event handler that uses the InputParameters property of the _XDocument4 class to retrieve the input parameter values, and then do something with those values.
This member can be accessed only by forms opened from a form template that has been configured to run with full trust using the Security and Trust category of the Form Options dialog box. This member requires full trust for the immediate caller and cannot be used by partially trusted code. For more information, see "Using Libraries from Partially Trusted Code" on MSDN.