Bagikan melalui


IVsCommentTaskToken.Text Method

Returns the text of a comment task token.

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

Syntax

'Declaration
Function Text ( _
    <OutAttribute> ByRef pbstrText As String _
) As Integer
int Text(
    out string pbstrText
)
int Text(
    [OutAttribute] String^% pbstrText
)
abstract Text : 
        pbstrText:string byref -> int 
function Text(
    pbstrText : String
) : int

Parameters

  • pbstrText
    Type: System.String%
    [out, retval] Pointer to a BSTR containing the text of the comment task token.

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 IVsCommentTaskToken::Text(
   [out, retval] BSTR* pbstrText
);

The text identifies the comment task token, such as "TODO", "HACK", or "UNDONE".

.NET Framework Security

See Also

Reference

IVsCommentTaskToken Interface

Microsoft.VisualStudio.Shell.Interop Namespace