Share via


_Application3.UnregisterSolution Method

Uninstalls the specified Microsoft Office InfoPath 2007 form template.

Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)

Syntax

'Declaration
'Usage

Parameters

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

Remarks

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

Example

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 2.0 Type Library is referenced.

See Also

Reference

_Application3 Interface
_Application3 Members
Microsoft.Office.Interop.InfoPath Namespace