_Application3.UnregisterSolution(String) 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.
Uninstalls the specified 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
Specifies the Uniform Resource Identifier (URI) of the form template.
Implements
Examples
public void UninstallForm()
{
Microsoft.Office.Interop.InfoPath.Application infoPath =
new Microsoft.Office.Interop.InfoPath.ApplicationClass();
infoPath.<span class="label">UnregisterSolution</span>(@"C:\My Forms\MyFormTemplate.xsn");
}
<p>
<strong>Note</strong>: The above example assumes that the <xref data-throw-if-not-resolved="true" uid="Microsoft.Office.Interop.InfoPath"></xref> namespace is being used and that the Microsoft InfoPath 3.0 Type Library is referenced.</p>
public void UninstallForm()
{
Microsoft.Office.Interop.InfoPath.Application infoPath =
new Microsoft.Office.Interop.InfoPath.ApplicationClass();
infoPath.<span class="label">UnregisterSolution</span>(@"C:\My Forms\MyFormTemplate.xsn");
}
<p>
<strong>Note</strong>: The above example assumes that the <xref data-throw-if-not-resolved="true" uid="Microsoft.Office.Interop.InfoPath"></xref> namespace is being used and that the Microsoft InfoPath 3.0 Type Library is referenced.</p>
Remarks
If the form template cannot be unregistered, the UnregisterSolution method will return an error.