IVsTaskItem2.put_CustomColumnText(Guid, UInt32, String) 方法

定义

为指定的任务列表视图设置自定义字段的文本。

public:
 int put_CustomColumnText(Guid % guidView, System::UInt32 iCustomColumnIndex, System::String ^ bstrText);
public int put_CustomColumnText (ref Guid guidView, uint iCustomColumnIndex, string bstrText);
abstract member put_CustomColumnText : Guid * uint32 * string -> int
Public Function put_CustomColumnText (ByRef guidView As Guid, iCustomColumnIndex As UInteger, bstrText As String) As Integer

参数

guidView
Guid

中任务列表视图的 GUID。

iCustomColumnIndex
UInt32

中自定义字段的索引。

bstrText
String

中指向包含自定义字段文本的字符串的指针。

返回

Int32

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

注解

COM 签名

从 vsshell:

HRESULT IVsTaskItem2::put_CustomColumnText(  
   [in]REFGUID guidView,  
   [in]ULONG iCustomColumnIndex,  
   [in]BSTR bstrText  
);  

仅当你希望用户可以修改自定义字段时,才实现此方法。

有关详细信息,请参阅方法的 "备注" 部分 get_CustomColumnText

适用于