IVsTaskItem::get_Checked Method (Int32)

 

Determines whether the task item's check box is currently selected or cleared.

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

int get_Checked(
	[OutAttribute] int% pfChecked
)

Parameters

pfChecked
Type: System::Int32

[out, retval] If true, then the check box for the task item is selected. If false, then the check box is cleared.

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 IVsTaskItem::get_Checked(
   [out,retval]BOOL *pfChecked
);

If pfChecked returns as true, the text in the task list is grey, indicating the task has been completed. If pfChecked returns as false the task list text is not grey and indicates the task has not been completed.

Return to top
Show: