Поделиться через


_Application3.UnregisterSolution(String) Метод

Определение

Удаляет указанный шаблон формы.

public:
 void UnregisterSolution(System::String ^ bstrSolutionURI);
public void UnregisterSolution (string bstrSolutionURI);
abstract member UnregisterSolution : string -> unit
Public Sub UnregisterSolution (bstrSolutionURI As String)

Параметры

bstrSolutionURI
String

Задает шаблону формы универсальный идентификатор ресурса (URI).

Реализации

Примеры

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>

Комментарии

Если не удается удалить регистрацию шаблона формы, метод UnregisterSolution возвратит ошибку.

Применяется к