IVsMergeableUIItem.GetMergingPriority 方法

返回合并的优先级。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
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

参数

  • piMergingPriority
    类型:Int32%

    [out] 优先级

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

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

合并的优先级用于解决冲突。 越大它接收的优先级线程,更多首选项。

准则:

-,如果这是 Microsoft 产品, piMergingPriority 应为 0x1000 或更大。

-,如果 thes 是定义标记的主要包,使用 0x2000 或更大。

-,如果不执行任何本地化, piMergingPriority 应为负数。

.NET Framework 安全性

请参阅

参考

IVsMergeableUIItem 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间