Sdílet prostřednictvím


AddIn.Collection – vlastnost

Vrátí kolekci obsahující AddIn objektu, který podporuje tuto vlastnost.

Obor názvů:  EnvDTE
Sestavení:  EnvDTE (v EnvDTE.dll)

Syntaxe

'Deklarace
ReadOnly Property Collection As AddIns
AddIns Collection { get; }
property AddIns^ Collection {
    AddIns^ get ();
}
abstract Collection : AddIns with get
function get Collection () : AddIns

Hodnota vlastnosti

Typ: EnvDTE.AddIns
AddIns Kolekce.

Příklady

public void AddinCollExample(AddIn addIn)
{
   // For this example to work, there should be an add-in
   // available in the Visual Studio enviroment.
   
   string peers = "";
   
   // Retrieve all peer elements of the addin
   foreach (AddIn someAddin in addIn.Collection)
   {
      if ((someAddin != addIn) && (someAddin.Name != null))
         peers += someAddin.Name + "\n";
   }
   MessageBox.Show(addIn.Name + " has the following peer elements:\n\n" + peers);
}

Zabezpečení rozhraní .NET Framework

Viz také

Referenční dokumentace

AddIn Rozhraní

EnvDTE – obor názvů

Další zdroje

Postupy: Kompilace a spuštění příkladů kódu objektu automatizace