IGraphProviderRankableExtension.GetRank(GraphObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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).
public:
int GetRank(Microsoft::VisualStudio::GraphModel::GraphObject ^ graphObject);
public int GetRank (Microsoft.VisualStudio.GraphModel.GraphObject graphObject);
abstract member GetRank : Microsoft.VisualStudio.GraphModel.GraphObject -> int
Public Function GetRank (graphObject As GraphObject) As Integer
Parameters
- graphObject
- GraphObject
The graph object to be ranked against.
Returns
The rank value associated with given graph object. It's recommended that each extension defines its own domain specific rank constant values.