IGraphProviderRankableExtension::GetRank Method (GraphObject^)
Visual Studio 2015
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).
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Parameters
- graphObject
-
Type:
Microsoft.VisualStudio.GraphModel::GraphObject^
The graph object to be ranked against.
Return Value
Type: System::Int32The rank value associated with given graph object. It's recommended that each extension defines its own domain specific rank constant values.
Show: