次の方法で共有


IVsTaskItem2.put_CustomColumnText(Guid, UInt32, String) Method

Definition

Sets the text of a customized field for the specified task list view.

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

Parameters

guidView
Guid

[in] GUID of the task list view.

iCustomColumnIndex
UInt32

[in] Index of the customized field.

bstrText
String

[in] Pointer to a string containing the customized field text.

Returns

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_CustomColumnText(  
   [in]REFGUID guidView,  
   [in]ULONG iCustomColumnIndex,  
   [in]BSTR bstrText  
);  

Implement this method only if you want the customized field to be modifiable by the user.

For further information, see the Remarks section of get_CustomColumnText Method.

Applies to