Compartilhar via


IVsUserContext.GetPriority Method

Determines the priority of an attribute or keyword in the context or subcontext bag.

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

Syntax

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

Parameters

  • lPriority
    Type: Int32%

    [out] Priority of the attribute or keyword. For a list of lPriority values, see VSUSERCONTEXTPRIORITY.

Return Value

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

Remarks

COM Signature

From context.idl:

HRESULT IVsUserContext::GetPriority(
   [out, retval] int *lPriority
);

This method returns an integer value that corresponds to the priority of the context item. Compare this value with the string values of the VSUSERCONTEXTPRIORITY enumeration.

.NET Framework Security

See Also

Reference

IVsUserContext Interface

Microsoft.VisualStudio.Shell.Interop Namespace