Export (0) Print
Expand All
Cut
Run
Expand Minimize

CanExtend Method (IExtenderProvider Interface)

Visual Studio .NET 2003

Returns whether or not the Provider can provide an Extender for the given object in the specified category.

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

Parameters

ExtenderCATID
The CATID for the Extender being requested.
ExtenderName
The name for the Extender being requested.
ExtendeeObject
The Extendee object.

Return Value

The implementer should return True if the Provider can provide an Extender for the given object in 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.

See Also

Implementing and Using Automation Extenders

Applies To: IExtenderProvider Interface

Show:
© 2014 Microsoft