Compartir a través de


ObjectExtenders.GetExtender(String, String, Object) Method

Definition

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

public:
 System::Object ^ GetExtender(System::String ^ ExtenderCATID, System::String ^ ExtenderName, System::Object ^ ExtendeeObject);
public:
 Platform::Object ^ GetExtender(Platform::String ^ ExtenderCATID, Platform::String ^ ExtenderName, Platform::Object ^ ExtendeeObject);
winrt::Windows::Foundation::IInspectable GetExtender(std::wstring const & ExtenderCATID, std::wstring const & ExtenderName, winrt::Windows::Foundation::IInspectable const & ExtendeeObject);
[System.Runtime.InteropServices.DispId(5)]
public object GetExtender (string ExtenderCATID, string ExtenderName, object ExtendeeObject);
[<System.Runtime.InteropServices.DispId(5)>]
abstract member GetExtender : string * string * obj -> obj
Public Function GetExtender (ExtenderCATID As String, ExtenderName As String, ExtendeeObject As Object) As Object

Parameters

ExtenderCATID
String

Required. The Extender's CATID.

ExtenderName
String

Required. The Extender's name.

ExtendeeObject
Object

Required. Represents the Extendee object instance.

Returns

An Extender.

Attributes

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.

Applies to