This documentation is archived and is not being maintained.

Object Property [Variant 2] (General Extensibility)

Visual Studio .NET 2003

Sets or returns the object supporting the specified object.

[Visual Basic .NET]
Public Property Object() As Object
[Visual Basic 6]
Property Get Object() As Object
Property Let Object( _
   ByVal NewValue As Object _
HRESULT __stdcall get_Object(
   /* [out, retval] */ IDispatch** retVal
HRESULT __stdcall put_Object(
   /* [in] */ IDispatch* NewValue
object Object {get; set;}
[JScript .NET]
public function get Object() : Object
public function set Object(
   NewValue : Object


Required. An object to which the Property object is set.

Return Value

  • For the Addin object, sets or returns an additional OLE automation object to support other add-ins.
  • For the Property object, sets or returns the value of the Property object when its type is Object.


If an Add-in uses Property.Value instead of Property.Object, then the Property object returns a Properties collection instead of an Object value. That is, the IDispatch that would be returned via Property.Object is wrapped so that Property.Value returns a nested Properties collection.


Sub ObjectExample()
   Dim objAddin1 As AddIn
   Dim objaddin2 As Object
   objAddin1 = DTE.AddIns.Item(1)
   objaddin2 = objAddin1.Object
End Sub

See Also

Applies To: AddIn Object | Property Object