AddPackageDependencyOptions.Rank Property

Definition

The rank to use to add the resolved package to the caller's package graph.

public:
 property int Rank { int get(); void set(int value); };
int Rank();

void Rank(int value);
public int Rank { get; set; }
var int32 = addPackageDependencyOptions.rank;
addPackageDependencyOptions.rank = int32;
Public Property Rank As Integer

Property Value

Int32

int

Remarks

For more information about the rank value, see the remarks for the PackageDependency.Add method.

If multiple packages are present in the package graph with the same rank, you can ensure the resolved package is added before others of the same rank by using the PrependIfRankCollision property.

Applies to

See also