This documentation is archived and is not being maintained.

Object Property [Variant 1] (General Extensibility)

Visual Studio .NET 2003

Returns an interface or object that can be accessed by name at run time.

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


  • For the UIHierarchy object, returns the object behind the item.
  • For the Window object, returns the extensibility object for the tool represented by the window.


Sub ObjectExample()
   Dim win As Window = DTE.Windows.Item(Constants.vsWindowKindTaskList)
   Dim TL As TaskList = win.Object
   MsgBox("Total number of task items: " & TL.TaskItems.Count)
End Sub

See Also

Applies To: Configuration Object | Project Object | ProjectItem Object | UIHierarchyItem Object | Window Object