Propriedade AddIn.Collection

Retorna a coleção que contém o AddIn objeto que suporta esta propriedade.

Namespace:  EnvDTE
Assembly:  EnvDTE (em EnvDTE.dll)

Sintaxe

'Declaração
ReadOnly Property Collection As AddIns
    Get
AddIns Collection { get; }
property AddIns^ Collection {
    AddIns^ get ();
}
abstract Collection : AddIns
function get Collection () : AddIns

Valor de propriedade

Tipo: EnvDTE.AddIns
Um AddIns coleção.

Exemplos

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);
}

Segurança do .NET Framework

Consulte também

Referência

AddIn Interface

Namespace EnvDTE

Outros recursos

Como: compilar e Executar a automação de exemplos de Código do modelo de objeto