Share via


IGraphProviderRankableExtension.GetRank Method

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

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)

Syntax

'Declaration
Function GetRank ( _
    graphObject As GraphObject _
) As Integer
int GetRank(
    GraphObject graphObject
)
int GetRank(
    GraphObject^ graphObject
)
abstract GetRank : 
        graphObject:GraphObject -> int
function GetRank(
    graphObject : GraphObject
) : int

Parameters

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.

.NET Framework Security

See Also

Reference

IGraphProviderRankableExtension Interface

Microsoft.VisualStudio.GraphModel Namespace