次の方法で共有


IVsTaskItem2.put_Text(String) Method

Definition

Sets the description for a task item.

public:
 int put_Text(System::String ^ bstrName);
public:
 int put_Text(Platform::String ^ bstrName);
int put_Text(std::wstring const & bstrName);
public int put_Text (string bstrName);
abstract member put_Text : string -> int
Public Function put_Text (bstrName As String) As Integer

Parameters

bstrName
String

[in] Description of the task item.

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

Applies to