IExtenderProvider.CanExtend(String, String, Object) Method

Definition

Returns whether or not the provider can provide an extender for the given object in the specified category.

[System.Runtime.InteropServices.DispId(2)]
public bool CanExtend (string ExtenderCATID, string ExtenderName, object ExtendeeObject);
Parameters
ExtenderCATID
String

The CATID for the extender being requested.

ExtenderName
String

The name for the extender being requested.

ExtendeeObject
Object

The Extendee object.

Returns

true if the provider can provide an extender for the given object with the specified category and name.

Remarks

CanExtend returns whether an extender is available for the given CATID and name for the specified extendee instance. The extender provider may need to inspect the extendee instance to determine whether or not it should provide an extender for it. For example, an extender provider may be chartered to create an "ATLClass" extender to a class object, but only if Class.Language has a value of "C++." The extender provider is expected to do this kind of check in this CanExtend method.

Applies to