Partager via


IGraphProviderRankableExtension Interface

Definition

When more than one graph provider supports an extention type on a graph object, only one extension instance has to be choosen 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 extention instance with the greatest rank value will be choosen.

public interface class IGraphProviderRankableExtension
public interface IGraphProviderRankableExtension
type IGraphProviderRankableExtension = interface
Public Interface IGraphProviderRankableExtension
Derived

Methods

GetRank(GraphObject)

Get a rank value associated with given graph object. The greater is this value the more likely this extension instance will be choosen when more than one provider supports this extension type on a graph object. For example the C# provider's IGraphNavigateToItem extension will return greater 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).

Applies to