共用方式為


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

'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 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

Microsoft.VisualStudio.Shell.Interop Namespace