IVsCommentTaskToken.Priority Method

Returns the priority of a comment task token.

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

Syntax

'宣言
Function Priority ( _
    <OutAttribute> ptpPriority As VSTASKPRIORITY() _
) As Integer
'使用
Dim instance As IVsCommentTaskToken
Dim ptpPriority As VSTASKPRIORITY()
Dim returnValue As Integer

returnValue = instance.Priority(ptpPriority)
int Priority(
    VSTASKPRIORITY[] ptpPriority
)
int Priority(
    [OutAttribute] array<VSTASKPRIORITY>^ ptpPriority
)
function Priority(
    ptpPriority : VSTASKPRIORITY[]
) : int

Parameters

  • ptpPriority
    Type: []

    [out, retval] Pointer to the task token priority, whose value is taken from the _vstaskpriority enumeration.

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 vsshell.idl:

HRESULT IVsCommentTaskToken::Priority(
   [out, retval] VSTASKPRIORITY* ptpPriority
);

Since a user cannot change the comment task priority within the task list, there is no put_Priority method. However, a user can change the priority of a comment task token by using the Options menu item of the Tools menu of the IDE and selecting the Task List node of the Environment tree.

Permissions

See Also

Reference

IVsCommentTaskToken Interface

IVsCommentTaskToken Members

Microsoft.VisualStudio.Shell.Interop Namespace