Share via


IVsCommentTaskToken.Priority(VSTASKPRIORITY[]) Method

Definition

Returns the priority of a comment task token.

public:
 int Priority(cli::array <Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY> ^ ptpPriority);
public:
 int Priority(Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY> ^ ptpPriority);
int Priority(std::Array <Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY> const & ptpPriority);
public int Priority (Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY[] ptpPriority);
abstract member Priority : Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY[] -> int
Public Function Priority (ptpPriority As VSTASKPRIORITY()) As Integer

Parameters

ptpPriority
VSTASKPRIORITY[]

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

Returns

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.

Applies to