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
'Usage
Dim instance As IVsCommentTaskToken
Dim pbstrText As String
Dim returnValue As Integer
returnValue = instance.Text(pbstrText)
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.