Udostępnij za pośrednictwem


Metoda AddIn.Remove —

Usuwa Dodaj w kolekcji add-ins i staje się niedostępny.

Przestrzeń nazw:  EnvDTE
Zestaw:  EnvDTE (w EnvDTE.dll)

Składnia

'Deklaracja
Sub Remove
void Remove()
void Remove()
abstract Remove : unit -> unit 
function Remove()

Uwagi

Spowoduje to usunięcie dodatku z listy dodatków w - W Menedżerze okno dialogowe.Remove Metodę stosuje się tylko do dodatków, które ładują się za pomocą roztworu.Remove Metody zakończy się niepowodzeniem na elementy w kolekcji skojarzonych z DTE obiektu.

Przykłady

Sub RemoveExample()
   ' Set object references.
   Dim addincoll As AddIns
   Dim addinobj As AddIn
   Dim abc As AddIn
        
   ' Register an add-in.
   addincoll = AddIns
   Shell("regsvr32 F:\AddIns\RegExplore\Debug\regexplore.dll")
   addincoll.Update()
   addinobj = addincoll.Item(1)

   ' Connect the add-in if it is not already connected.
   If addinobj.Connected = False Then
      addinobj.Connected = True
   End If

   ' Add an add-in to the Add-In Manager dialog box, then remove it.
   abc = ProjectSolution().AddIns.Add(addinobj.ProgID, addinobj.Description, addinobj.Name, False)
   ProjectSolution().AddIns.Item(1).Remove()
End Sub

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

AddIn Interfejs

Przestrzeń nazw EnvDTE