Partager via


IVsTaskItem.get_Checked Method

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)

Syntax

'Déclaration
Function get_Checked ( _
    <OutAttribute> ByRef pfChecked As Integer _
) As Integer
'Utilisation
Dim instance As IVsTaskItem
Dim pfChecked As Integer
Dim returnValue As Integer

returnValue = instance.get_Checked(pfChecked)
int get_Checked(
    out int pfChecked
)
int get_Checked(
    [OutAttribute] int% pfChecked
)
abstract get_Checked : 
        pfChecked:int byref -> int 
function get_Checked(
    pfChecked : int
) : int

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.

Remarks

COM Signature

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.

.NET Framework Security

See Also

Reference

IVsTaskItem Interface

IVsTaskItem Members

Microsoft.VisualStudio.Shell.Interop Namespace