_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.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기