Partager via


IVsTaskItem2.put_Checked Method (Int32)

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 IVsTaskItem2
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.

Implements

IVsTaskItem.put_Checked(Int32)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskItem2::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

IVsTaskItem2 Interface

IVsTaskItem2 Members

put_Checked Overload

Microsoft.VisualStudio.Shell.Interop Namespace