IGraphProviderRankableExtension Interface

 

When more than one graph provider supports an extension type on a graph object, only one extension instance has to be chosen to be invoked.

This interface represents an extension that can provide its rank and by doing that influence the selection of an extension instance to be invoked. An extension instance with the greatest rank value will be choosen.

Namespace:   Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

public interface class IGraphProviderRankableExtension

NameDescription
System_CAPS_pubmethodGetRank(GraphObject^)

Get a rank value associated with given graph object. The larger is this value the more likely this extension instance will be chosen when more than one provider supports this extension type on a graph object.

For example the C# provider's IGraphNavigateToItem extension will return larger value if the graph object represents a code element from a C# project and lesser value for a code element from metadata (which might be handled better by another provider).

Return to top
Show: