Compartir a través de


AddIn.Name (Propiedad)

Obtiene el nombre del objeto AddIn.

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

Sintaxis

'Declaración
ReadOnly Property Name As String
    Get
string Name { get; }
property String^ Name {
    String^ get ();
}
abstract Name : string
function get Name () : String

Valor de propiedad

Tipo: System.String
Una cadena que representa el nombre del objeto AddIn.

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