다음을 통해 공유


ColorableItem.GetMergingPriority Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

‘선언
Public Overridable Function GetMergingPriority ( _
    <OutAttribute> ByRef priority As Integer _
) As Integer
‘사용 방법
Dim instance As ColorableItem
Dim priority As Integer
Dim returnValue As Integer

returnValue = instance.GetMergingPriority(priority)
public virtual int GetMergingPriority(
    out int priority
)
public:
virtual int GetMergingPriority(
    [OutAttribute] int% priority
)
abstract GetMergingPriority : 
        priority:int byref -> int 
override GetMergingPriority : 
        priority:int byref -> int 
public function GetMergingPriority(
    priority : int
) : int

Parameters

  • priority
    Type: System.Int32%
    [out] A priority value, the higher it is, the more preferred this colorable item.

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsMergeableUIItem.GetMergingPriority(Int32%)

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.

.NET Framework Security

See Also

Reference

ColorableItem Class

ColorableItem Members

Microsoft.VisualStudio.Package Namespace