ObjectExtenders.GetExtender Method

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

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

Syntax

'Declaration
Function GetExtender ( _
    ExtenderCATID As String, _
    ExtenderName As String, _
    ExtendeeObject As Object _
) As Object
Object GetExtender(
    string ExtenderCATID,
    string ExtenderName,
    Object ExtendeeObject
)
Object^ GetExtender(
    [InAttribute] String^ ExtenderCATID, 
    [InAttribute] String^ ExtenderName, 
    [InAttribute] Object^ ExtendeeObject
)
abstract GetExtender : 
        ExtenderCATID:string * 
        ExtenderName:string * 
        ExtendeeObject:Object -> Object
function GetExtender(
    ExtenderCATID : String, 
    ExtenderName : String, 
    ExtendeeObject : Object
) : Object

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.

Remarks

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.

.NET Framework Security

See Also

Reference

ObjectExtenders Interface

EnvDTE Namespace

Other Resources

Implementing and Using Automation Extenders