Düzenle

Aracılığıyla paylaş


_ExternalApplication.UnregisterSolution(String) Method

Definition

Uninstalls the specified Microsoft InfoPath form template.

public:
 void UnregisterSolution(System::String ^ bstrSolutionURI);
public void UnregisterSolution (string bstrSolutionURI);
abstract member UnregisterSolution : string -> unit
Public Sub UnregisterSolution (bstrSolutionURI As String)

Parameters

bstrSolutionURI
String

The string value that specifies the Uniform Resource Identifier (URI) of the form template.

Examples

In the following example, which is written in the C# programming language, the UnregisterSolution method of the ExternalApplication object is used to uninstall a form template:

private void UninstallForm()
{
 ExternalApplication infoPath = new ExternalApplicationClass();

 infoPath.<span class="label">UnregisterSolution</span>(@"C:\My Forms\MyFormTemplate.xsn");
}

Note: The above example assumes that the Microsoft.Office.Interop.InfoPath namespace is being used and that the Microsoft InfoPath 3.0 Type Library is referenced.

In the following example, which is written in the C# programming language, the UnregisterSolution method of the ExternalApplication object is used to uninstall a form template:

private void UninstallForm()
{
 ExternalApplication infoPath = new ExternalApplicationClass();

 infoPath.<span class="label">UnregisterSolution</span>(@"C:\My Forms\MyFormTemplate.xsn");
}

Note: The above example assumes that the Microsoft.Office.Interop.InfoPath namespace is being used and that the Microsoft InfoPath 3.0 Type Library is referenced.

Remarks

If the form template cannot be unregistered, the UnregisterSolution method will return an error.

Applies to