Partager via


IVsCommentTaskInfo.DefaultToken Method

Returns the default comment task token.

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

Syntax

'Declaration
Function DefaultToken ( _
    <OutAttribute> ByRef ppToken As IVsCommentTaskToken _
) As Integer
int DefaultToken(
    out IVsCommentTaskToken ppToken
)
int DefaultToken(
    [OutAttribute] IVsCommentTaskToken^% ppToken
)
abstract DefaultToken : 
        ppToken:IVsCommentTaskToken byref -> int
function DefaultToken(
    ppToken : IVsCommentTaskToken
) : int

Parameters

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsCommentTaskInfo::DefaultToken(
   [out, retval] IVsCommentTaskToken** ppToken
);

This is the token that add-ins should use when inserting generic comment tasks into the user's code. In the Visual Studio IDE, the default comment task token is "TODO" with normal priority. The name of the default comment task token cannot be changed, but the user can change its priority.

.NET Framework Security

See Also

Reference

IVsCommentTaskInfo Interface

Microsoft.VisualStudio.Shell.Interop Namespace