Share via


_Application3.UnregisterSolution method (String)

Uninstalls the specified form template.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Sub UnregisterSolution ( _
    bstrSolutionURI As String _
)
'Usage
Dim instance As _Application3
Dim bstrSolutionURI As String

instance.UnregisterSolution(bstrSolutionURI)
void UnregisterSolution(
    string bstrSolutionURI
)

Parameters

  • bstrSolutionURI
    Type: System.String

    Specifies the Uniform Resource Identifier (URI) of the form template.

Implements

_Application2.UnregisterSolution(String)

Remarks

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

Examples

public void UninstallForm()
{
   Microsoft.Office.Interop.InfoPath.Application infoPath = 
      new Microsoft.Office.Interop.InfoPath.ApplicationClass();
   infoPath.UnregisterSolution(@"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.

See also

Reference

_Application3 interface

_Application3 members

UnregisterSolution overload

Microsoft.Office.Interop.InfoPath namespace