Export (0) Print
Expand All
Cut
Run
Expand Minimize

GetExtender Method (ObjectExtenders Object)

Visual Studio .NET 2003

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

[Visual Basic .NET]
Public Function GetExtender( _
   ByVal ExtenderCATID As String, _
   ByVal ExtenderName As String, _
   ByVal ExtendeeObject As IUnknown _
) As Object
[Visual Basic 6]
Function GetExtender( _
   ByVal ExtenderCATID As String, _
   ByVal ExtenderName As String, _
   ByVal ExtendeeObject As Unknown _
) As Object
[C++]
HRESULT __stdcall GetExtender(
   BSTR ExtenderCATID,
   BSTR ExtenderName,
   IUnknown* ExtendeeObject,
   /* [out, retval] */ IDispatch** Extender
);
[C#]
object GetExtender(
   string ExtenderCATID,
   string ExtenderName,
   object ExtendeeObject
);
[JScript .NET]
public function GetExtender(
   ExtenderCATID : String,
   ExtenderName : String,
   ExtendeeObject : Object
) : Object

Parameters

ExtenderCATID
Required. The Extender's CATID.
ExtenderName
Required. The Extender's name.
ExtendeeObject
Required. Represents the Extendee object instance.

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.

See Also

Implementing and Using Automation Extenders | IExtenderProvider Interface | IExtenderProviderUnk Interface

Applies To: ObjectExtenders Object

Show:
© 2014 Microsoft