This topic has not yet been rated - Rate this topic

ObjectExtenders.GetExtender Method

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.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.