Share via


IExtenderSite.GetObject Method

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

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

Syntax

'Declaration
Function GetObject ( _
    Name As String _
) As Object
Object GetObject(
    string Name
)
Object^ GetObject(
    [InAttribute] String^ Name
)
abstract GetObject : 
        Name:string -> Object
function GetObject(
    Name : String
) : Object

Parameters

  • Name
    Type: System.String

    Required. The name of the object to retrieve. Only "DTE" is supported.

Return Value

Type: System.Object
An object.

Remarks

GetObject supports only "DTE" as the Name parameter. This is provided so that extender providers can access the DTE object.

.NET Framework Security

See Also

Reference

IExtenderSite Interface

EnvDTE Namespace

Other Resources

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