ObjectExtenders::GetExtender Method (String^, String^, Object^)

 

Gets an Extender for the given object under the specified category.

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

Object^ GetExtender(
	String^ ExtenderCATID,
	String^ ExtenderName,
	Object^ ExtendeeObject
)

Parameters

ExtenderCATID
Type: System::String^

Required. The Extender's CATID.

ExtenderName
Type: System::String^

Required. The Extender's name.

ExtendeeObject
Type: System::Object^

Required. Represents the Extendee object instance.

Return Value

Type: System::Object^

An Extender.

The GetExtender is used to obtain an Extender under the specified CATID and name for the given Extendee object. This causes ObjectExtenders to call the appropriate Extender Provider's CanExtend and GetExtender methods. If the Extendee object supports IDispatch, it calls the IExtenderProvider version of the interface. Otherwise, it calls the IExtenderProviderUnk version.

This is equivalent to calling the Extendee object's Extender property if supported.

Return to top
Show: