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
int Priority(
VSTASKPRIORITY[] ptpPriority
)
int Priority(
[OutAttribute] array<VSTASKPRIORITY>^ ptpPriority
)
abstract Priority :
ptpPriority:VSTASKPRIORITY[] byref -> int
function Priority(
ptpPriority : VSTASKPRIORITY[]
) : int
Parameters
- ptpPriority
Type: array<Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY[]
[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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.