This documentation is archived and is not being maintained.

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)

int Text(
	out string pbstrText
)

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.

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

Show: