Compartir a través de


AddIn.Collection (Propiedad)

Devuelve la colección que contiene el objeto AddIn compatible con esta propiedad.

Espacio de nombres:  EnvDTE
Ensamblado:  EnvDTE (en EnvDTE.dll)

Sintaxis

'Declaración
ReadOnly Property Collection As AddIns
    Get
AddIns Collection { get; }
property AddIns^ Collection {
    AddIns^ get ();
}
abstract Collection : AddIns
function get Collection () : AddIns

Valor de propiedad

Tipo: EnvDTE.AddIns
Una colección AddIns.

Ejemplos

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

Seguridad de .NET Framework

Vea también

Referencia

AddIn Interfaz

EnvDTE (Espacio de nombres)

Otros recursos

Cómo: Compilar y ejecutar los ejemplos de código del modelo de objetos de automatización