IVsCommentTaskToken::Priority Method (array<VSTASKPRIORITY>^)

 

Returns the priority of a comment task token.

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

int Priority(
	array<VSTASKPRIORITY>^ ptpPriority
)

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.

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.

Return to top
Show: