Export (0) Print
Expand All

IExtenderProviderUnk.CanExtend Method

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

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

bool CanExtend (
	[InAttribute] string ExtenderCATID,
	[InAttribute] string ExtenderName,
	[InAttribute] Object ExtendeeObject
)
boolean CanExtend (
	/** @attribute InAttribute() */ String ExtenderCATID, 
	/** @attribute InAttribute() */ String ExtenderName, 
	/** @attribute InAttribute() */ Object ExtendeeObject
)
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

A Boolean value indicating true if the provider can provide an Extender for the given object in the specified category and name.

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.

NoteNote

The Extendee object is passed as an IUnknown interface.

Community Additions

ADD
Show:
© 2014 Microsoft