Compartir a través de


IVsTaskItem2.get_Priority Method (array<VSTASKPRIORITY )

Returns the priority level of a task item.

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

Syntax

'Declaración
Function get_Priority ( _
    <OutAttribute> ptpPriority As VSTASKPRIORITY() _
) As Integer
'Uso
Dim instance As IVsTaskItem2
Dim ptpPriority As VSTASKPRIORITY()
Dim returnValue As Integer

returnValue = instance.get_Priority(ptpPriority)
int get_Priority(
    VSTASKPRIORITY[] ptpPriority
)
int get_Priority(
    [OutAttribute] array<VSTASKPRIORITY>^ ptpPriority
)
abstract get_Priority : 
        ptpPriority:VSTASKPRIORITY[] byref -> int 
function get_Priority(
    ptpPriority : VSTASKPRIORITY[]
) : int

Parameters

Return Value

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

Implements

IVsTaskItem.get_Priority(array<VSTASKPRIORITY[])

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskItem2::get_Priority(
   [out,retval] VSTASKPRIORITY *ptpPriority
);

The priority of the task item is indicated by different bitmaps, which are provided by the environment. For example, a red exclamation mark is placed next to tasks that are of high priority, while a blue down-arrow is placed next to low priority tasks.

.NET Framework Security

See Also

Reference

IVsTaskItem2 Interface

IVsTaskItem2 Members

get_Priority Overload

Microsoft.VisualStudio.Shell.Interop Namespace