Proprietà AddIn.Object

Imposta o ottiene il supporto dell'oggetto specificato AddIn oggetto.

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

Sintassi

'Dichiarazione
Property Object As Object
Object Object { get; set; }
property Object^ Object {
    Object^ get ();
    void set (Object^ value);
}
abstract Object : Object with get, set
function get Object () : Object
function set Object (value : Object)

Valore proprietà

Tipo: System.Object

  • Un oggetto aggiuntivo di automazione OLE per supportare altri componenti aggiuntivi.

Esempi

public void AddinObjExample(AddIn addIn)
{ 
   try
   {
      // If the Add-in's namespace is AnAddin and the constructor
      // is Connect(an object for implementing an Addin),
      // someObject is an instance of AnAddin.Connect.
      Object someObject = addIn.Object;

      MessageBox.Show(someObject.GetType().ToString());
   }
   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