Partager via


IVsTaskItem.put_Checked Method

Sets whether a task item's check box is selected or cleared.

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

Syntax

'Déclaration
Function put_Checked ( _
    fChecked As Integer _
) As Integer
'Utilisation
Dim instance As IVsTaskItem
Dim fChecked As Integer
Dim returnValue As Integer

returnValue = instance.put_Checked(fChecked)
int put_Checked(
    int fChecked
)
int put_Checked(
    [InAttribute] int fChecked
)
abstract put_Checked : 
        fChecked:int -> int 
function put_Checked(
    fChecked : int
) : int

Parameters

  • fChecked
    Type: System.Int32
    [in] If true, then the check box 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::put_Checked(
   [in] BOOL fChecked
);

Implement this method only if you want the check box to be modifiable by the user.

.NET Framework Security

See Also

Reference

IVsTaskItem Interface

IVsTaskItem Members

Microsoft.VisualStudio.Shell.Interop Namespace