Freigeben über


AddIn.Object Property

Sets or gets the object supporting the specified AddIn object.

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

Syntax

'Declaration
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)

Property Value

Type: System.Object

  • An additional OLE automation object to support other add-ins.

Examples

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

.NET Framework Security

See Also

Reference

AddIn Interface

EnvDTE Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples