Proprietà AddIn.Guid

Ottiene il GUID dell'oggetto AddIn.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

'Dichiarazione
ReadOnly Property Guid As String
    Get
string Guid { get; }
property String^ Guid {
    String^ get ();
}
abstract Guid : string
function get Guid () : String

Valore proprietà

Tipo: System.String

  • Stringa che rappresenta il CLSID del componente aggiuntivo ottenuto dalla relativa voce nel Registro di sistema.

Esempi

public void Example2(AddIn addin)
{
   try
   {
      MessageBox.Show(addin.Guid);
   }
   catch (Exception ex)
   {
      MessageBox.Show(ex.Message);
   }
}

Sicurezza di .NET Framework

Vedere anche

Riferimenti

AddIn Interfaccia

Spazio dei nomi EnvDTE

Altre risorse

Procedura: compilare ed eseguire gli esempi di codice del modello a oggetti di automazione