This documentation is archived and is not being maintained.

GetObject Method (General Extensibility)

Visual Studio .NET 2003

Returns an interface or object that is late-bound to the DTE Object and can be accessed by name at run time.

[Visual Basic .NET]
Public Function GetObject( _
   ByVal Name As String _
) As Object
[Visual Basic 6]
Function GetObject( _
   ByVal Name As String _
) As Object
[C++]
HRESULT __stdcall GetObject(
   BSTR Name,
   /* [out, retval] */ IDispatch** retVal
);
[C#]
object GetObject(
   string Name
);
[JScript .NET]
public function GetObject(
   Name : String
) : Object

Parameters

Name
Required. The name of the object to retrieve.

Remarks

GetObject is most useful in languages that do not support early binding. In this case, you can name the specific interface or object you want, for example, DTE.GetObject("VCProjects").

IExtenderSite.GetObject only supports the value "DTE" as the Name parameter. This is provided for Extender Providers to get to the DTE object.

See Also

Applies To: DTE Object | Events Object | IExtenderSite Interface

Show: