IVsTaskItem2.put_Checked(Int32) 方法

定义

设置是选中还是清除任务项的复选框。

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

参数

fChecked
Int32

中如果 true 为,则选中该复选框。 如果 false 为,则清除该复选框。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

注解

COM 签名

从 vsshell:

HRESULT IVsTaskItem2::put_Checked(  
   [in] BOOL fChecked  
);  

仅当您希望用户能够修改该复选框时,才实现此方法。

适用于