Events::GetObject Method (String^)

 

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

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

Object^ GetObject(
	String^ Name
)

Parameters

Name
Type: System::String^

Required. The name of the object to retrieve.

Return Value

Type: System::Object^

An object.

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.

No code example is currently available or this language may not be supported.
Return to top
Show: