共用方式為


IVsTaskItem2.put_Checked(Int32) Method

Definition

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

public:
 int put_Checked(int fChecked);
public:
 int put_Checked(int fChecked);
int put_Checked(int fChecked);
public int put_Checked (int fChecked);
abstract member put_Checked : int -> int
Public Function put_Checked (fChecked As Integer) As Integer

Parameters

fChecked
Int32

[in] If true, then the check box is selected. If false, then the check box is cleared.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

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.

Applies to