IVsTaskItem2::put_Text Method (String^)

 

Sets the description for a task item.

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

int put_Text(
	String^ bstrName
)

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.

From vsshell.idl:

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

Return to top
Show: