次の方法で共有


IVsTaskItem2.get_Text Method

Returns the description of the task item.

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

Syntax

'宣言
Function get_Text ( _
    <OutAttribute> ByRef pbstrName As String _
) As Integer
'使用
Dim instance As IVsTaskItem2
Dim pbstrName As String
Dim returnValue As Integer

returnValue = instance.get_Text(pbstrName)
int get_Text(
    out string pbstrName
)
int get_Text(
    [OutAttribute] String^% pbstrName
)
function get_Text(
    pbstrName : String
) : int

Parameters

  • pbstrName
    Type: System.String%

    [out, retval] Pointer to a 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.

Implements

IVsTaskItem.get_Text(String%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskItem2::get_Text(
   [out,retval] BSTR *pbstrName
);

This method returns the text in the description column for a specific task item.

Permissions

See Also

Reference

IVsTaskItem2 Interface

IVsTaskItem2 Members

Microsoft.VisualStudio.Shell.Interop Namespace