Compartir a través de


IVsTaskItem2.put_CustomColumnText Method

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

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

Syntax

'Declaración
Function put_CustomColumnText ( _
    ByRef guidView As Guid, _
    iCustomColumnIndex As UInteger, _
    bstrText As String _
) As Integer
'Uso
Dim instance As IVsTaskItem2
Dim guidView As Guid
Dim iCustomColumnIndex As UInteger
Dim bstrText As String
Dim returnValue As Integer

returnValue = instance.put_CustomColumnText(guidView, _
    iCustomColumnIndex, bstrText)
int put_CustomColumnText(
    ref Guid guidView,
    uint iCustomColumnIndex,
    string bstrText
)
int put_CustomColumnText(
    [InAttribute] Guid% guidView, 
    [InAttribute] unsigned int iCustomColumnIndex, 
    [InAttribute] String^ bstrText
)
abstract put_CustomColumnText : 
        guidView:Guid byref * 
        iCustomColumnIndex:uint32 * 
        bstrText:string -> int 
function put_CustomColumnText(
    guidView : Guid, 
    iCustomColumnIndex : uint, 
    bstrText : String
) : int

Parameters

  • guidView
    Type: System.Guid%
    [in] GUID of the task list view.
  • iCustomColumnIndex
    Type: System.UInt32
    [in] Index of the customized field.
  • bstrText
    Type: System.String
    [in] Pointer to a string containing the customized field text.

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

.NET Framework Security

See Also

Reference

IVsTaskItem2 Interface

IVsTaskItem2 Members

Microsoft.VisualStudio.Shell.Interop Namespace