Modifica

Condividi tramite


InfoPathEditorWithAppDomain.Load(String, Object, String) Method

Definition

Loads a form file (.xml) into the control represented by the InfoPathEditorWithAppDomain object.

public:
 void Load(System::String ^ bstrURL, System::Object ^ punkAppDomain, System::String ^ bstrInputParameters);
public void Load (string bstrURL, object punkAppDomain, string bstrInputParameters);
abstract member Load : string * obj * string -> unit
Public Sub Load (bstrURL As String, punkAppDomain As Object, bstrInputParameters As String)

Parameters

bstrURL
String

The path or URL to the form file (.xml).

punkAppDomain
Object

An AppDomain

bstrInputParameters
String

One or more name/value pairs separated by the ampersand (&) character.

Remarks

The Load(String, Object, String) method does not allow you to specify a form template file (.xsn). The form file must contain processing instructions (href and name attributes) that reference a valid form template file for the Load(String, Object, String) method to succeed. If this is not possible, the NewFromSolution(String, Object, String) method can be used if you have a .xsn file and a suitably structured XML file, but the XML file does not have processing instruction references that specify the .xsn file. Or you can use the LoadFromStream(Object, Object, String) method to load XML from a System.IO.Stream object.

To use the input parameters passed to the bstrInputParameters parameter, the form specified in the bstrURL parameter must contain a OnLoad event handler that uses the InputParameters property of the LoadingEventArgs class to retrieve the input parameter values, and then do something with those values.

Applies to