Freigeben über


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

'Declaration
Function Priority ( _
    <OutAttribute> ptpPriority As VSTASKPRIORITY() _
) As Integer
'Usage
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
)
abstract Priority : 
        ptpPriority:VSTASKPRIORITY[] byref -> int 
function 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.

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.

.NET Framework Security

See Also

Reference

IVsCommentTaskToken Interface

IVsCommentTaskToken Members

Microsoft.VisualStudio.Shell.Interop Namespace