IGraphProviderRankableExtension::GetRank Method (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).

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

int GetRank(
	GraphObject^ graphObject
)

Parameters

graphObject
Type: Microsoft.VisualStudio.GraphModel::GraphObject^

The graph object to be ranked against.

Return Value

Type: System::Int32

The rank value associated with given graph object. It's recommended that each extension defines its own domain specific rank constant values.

Return to top
Show: