Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
Function put_Checked ( _
    fChecked As Integer _
) As Integer
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: Int32- [in] If true, then the check box is selected. If false, then the check box is cleared. 
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.