Share via


IVsMergeableUIItem.GetMergingPriority Method

Returns the merging priority.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
Function GetMergingPriority ( _
    <OutAttribute> ByRef piMergingPriority As Integer _
) As Integer
int GetMergingPriority(
    out int piMergingPriority
)
int GetMergingPriority(
    [OutAttribute] int% piMergingPriority
)
abstract GetMergingPriority : 
        piMergingPriority:int byref -> int
function GetMergingPriority(
    piMergingPriority : int
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsMergeableUIItem::GetMergingPriority(
   [out] long *piMergingPriority
);

The merging priority is used to resolve conflicts. The higher the priority number, the more preference it receives.

Guidelines:

- If this is a Microsoft product, piMergingPriority should be 0x1000 or greater.

- If yours is the primary package to be defining the marker, use 0x2000 or greater.

- If you are not doing any localization, piMergingPriority should be negative.

.NET Framework Security

See Also

Reference

IVsMergeableUIItem Interface

Microsoft.VisualStudio.TextManager.Interop Namespace