IVsTaskItem.put_Text Method

Sets the description for a task item.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

‘선언
Function put_Text ( _
    bstrName As String _
) As Integer
‘사용 방법
Dim instance As IVsTaskItem
Dim bstrName As String
Dim returnValue As Integer

returnValue = instance.put_Text(bstrName)
int put_Text(
    string bstrName
)
int put_Text(
    [InAttribute] String^ bstrName
)
abstract put_Text : 
        bstrName:string -> int 
function put_Text(
    bstrName : String
) : int

Parameters

  • bstrName
    Type: System.String
    [in] Description of the task item.

Return Value

Type: System.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_Text(
   [in] BSTR bstrName
);

Implementing this method enables the user to modify the description field of the task item. Do not implement this method if you do not want users to be able to modify the description of the task item.

.NET Framework Security

See Also

Reference

IVsTaskItem Interface

IVsTaskItem Members

Microsoft.VisualStudio.Shell.Interop Namespace