Compartir a través de


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

'Declaración
Function GetPriority ( _
    <OutAttribute> ByRef lPriority As Integer _
) As Integer
'Uso
Dim instance As IVsUserContext
Dim lPriority As Integer
Dim returnValue As Integer

returnValue = instance.GetPriority(lPriority)
int GetPriority(
    out int lPriority
)
int GetPriority(
    [OutAttribute] int% lPriority
)
abstract GetPriority : 
        lPriority:int byref -> int 
function GetPriority(
    lPriority : 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 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

IVsUserContext Members

Microsoft.VisualStudio.Shell.Interop Namespace