XDocuments3.NewFromSolutionWithInputParameters(Object, Object) Method
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.
Creates a new form using the specified form template with the specified form template and input parameters.
public:
Microsoft::Office::Interop::InfoPath::SemiTrust::XDocument ^ NewFromSolutionWithInputParameters(System::Object ^ varSolutionURI, System::Object ^ varInputParams);
public Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument NewFromSolutionWithInputParameters (object varSolutionURI, object varInputParams);
abstract member NewFromSolutionWithInputParameters : obj * obj -> Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument
Public Function NewFromSolutionWithInputParameters (varSolutionURI As Object, varInputParams As Object) As XDocument
Parameters
- varSolutionURI
- Object
The Uniform Resource Identifier (URI) of the form template on which to base the new form.
- varInputParams
- Object
One or more name/value pairs separated by the ampersand (&) character.
Returns
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.