Share via


IGraphProviderRankableExtension Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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)

Syntax

'Declaration
Public Interface IGraphProviderRankableExtension
public interface IGraphProviderRankableExtension
public interface class IGraphProviderRankableExtension
type IGraphProviderRankableExtension =  interface end
public interface IGraphProviderRankableExtension

The IGraphProviderRankableExtension type exposes the following members.

Methods

  Name Description
Public method GetRank 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).

Top

See Also

Reference

Microsoft.VisualStudio.GraphModel Namespace