Share via


ColorableItem.GetMergingPriority(Int32) Method

Definition

Returns the priority this colorable item has when compared to other colorable items of the same name.

public:
 virtual int GetMergingPriority([Runtime::InteropServices::Out] int % priority);
 virtual int GetMergingPriority([Runtime::InteropServices::Out] int & priority);
public virtual int GetMergingPriority (out int priority);
abstract member GetMergingPriority : int -> int
override this.GetMergingPriority : int -> int
Public Overridable Function GetMergingPriority (ByRef priority As Integer) As Integer

Parameters

priority
Int32

[out] A priority value, the higher it is, the more preferred this colorable item.

Returns

If successful, returns S_OK; otherwise, returns an error code.

Implements

Remarks

Microsoft products use a priority of 0x1000 or greater. If your package is the primary source for this colorable item, use a priority of 0x2000 or greater. If you do not care about priority, return a negative value.

This method is an implementation of the GetMergingPriority method in the IVsMergeableUIItem interface.

The base method returns a priority of -1 and a success code of E_NOTIMPL.

Applies to