ObjectExtenders.GetExtender Method
Visual Studio 2012
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.
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.