_ExternalApplication.UnregisterSolution - Méthode
Désinstalle le modèle de formulaire Microsoft InfoPath spécifié.
Espace de noms : Microsoft.Office.Interop.InfoPath
Assembly : Microsoft.Office.Interop.InfoPath (dans Microsoft.Office.Interop.InfoPath.dll)
Syntaxe
'Déclaration
Sub UnregisterSolution ( _
bstrSolutionURI As String _
)
'Utilisation
Dim instance As _ExternalApplication
Dim bstrSolutionURI As String
instance.UnregisterSolution(bstrSolutionURI)
void UnregisterSolution(
string bstrSolutionURI
)
Paramètres
bstrSolutionURI
Type : System.StringLa valeur de cette chaîne spécifie l'URI (Uniform Resource Identifier) du formulaire.
Remarques
Si l'annulation de l'inscription du modèle de formulaire est impossible, la méthode UnregisterSolution renvoie une erreur.
Exemples
Dans l'exemple suivant, écrit en c# langage de programmation, la méthode UnregisterSolution de l'objet ExternalApplication est utilisée pour désinstaller un modèle de formulaire :
private void UninstallForm()
{
ExternalApplication infoPath = new ExternalApplicationClass();
infoPath.UnregisterSolution(@"C:\My Forms\MyFormTemplate.xsn");
}
Notes
L'exemple ci-dessus suppose que l'espace de noms Microsoft.Office.Interop.InfoPath est utilisé et que la bibliothèque de type Microsoft InfoPath 2.0 est référencée.
Voir aussi
Référence
_ExternalApplication interface