_Application3.UnregisterSolution(String) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Deinstalliert die angegebene Formularvorlage.
public:
void UnregisterSolution(System::String ^ bstrSolutionURI);
public void UnregisterSolution (string bstrSolutionURI);
abstract member UnregisterSolution : string -> unit
Public Sub UnregisterSolution (bstrSolutionURI As String)
Parameter
- bstrSolutionURI
- String
Gibt den URI (Uniform Resource Identifier) der Formularvorlage an.
Implementiert
Beispiele
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>
Hinweise
Wenn die Registrierung der Formularvorlage nicht aufgehoben werden kann, gibt die UnregisterSolution-Methode einen Fehler zurück.
Gilt für:
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für