Partager via


IVsOutputWindowPane.OutputTaskItemStringEx Method

Adds a string to the Output window and a corresponding item to the task list.

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

Syntax

'Declaration
Function OutputTaskItemStringEx ( _
    pszOutputString As String, _
    nPriority As VSTASKPRIORITY, _
    nCategory As VSTASKCATEGORY, _
    pszSubcategory As String, _
    nBitmap As Integer, _
    pszFilename As String, _
    nLineNum As UInteger, _
    pszTaskItemText As String, _
    pszLookupKwd As String _
) As Integer
int OutputTaskItemStringEx(
    string pszOutputString,
    VSTASKPRIORITY nPriority,
    VSTASKCATEGORY nCategory,
    string pszSubcategory,
    int nBitmap,
    string pszFilename,
    uint nLineNum,
    string pszTaskItemText,
    string pszLookupKwd
)
int OutputTaskItemStringEx(
    [InAttribute] String^ pszOutputString, 
    [InAttribute] VSTASKPRIORITY nPriority, 
    [InAttribute] VSTASKCATEGORY nCategory, 
    [InAttribute] String^ pszSubcategory, 
    [InAttribute] int nBitmap, 
    [InAttribute] String^ pszFilename, 
    [InAttribute] unsigned int nLineNum, 
    [InAttribute] String^ pszTaskItemText, 
    [InAttribute] String^ pszLookupKwd
)
abstract OutputTaskItemStringEx : 
        pszOutputString:string * 
        nPriority:VSTASKPRIORITY * 
        nCategory:VSTASKCATEGORY * 
        pszSubcategory:string * 
        nBitmap:int * 
        pszFilename:string * 
        nLineNum:uint32 * 
        pszTaskItemText:string * 
        pszLookupKwd:string -> int
function OutputTaskItemStringEx(
    pszOutputString : String, 
    nPriority : VSTASKPRIORITY, 
    nCategory : VSTASKCATEGORY, 
    pszSubcategory : String, 
    nBitmap : int, 
    pszFilename : String, 
    nLineNum : uint, 
    pszTaskItemText : String, 
    pszLookupKwd : String
) : int

Parameters

  • pszOutputString
    Type: String

    [in] Output string of the task item.

  • pszSubcategory
    Type: String

    [in] Subcategory of the task.

  • nBitmap
    Type: Int32

    [in] Bitmap of the task item whose values are taken from the _vstaskbitmap enumeration.

  • pszFilename
    Type: String

    [in] Name of the file containing pszOutputString.

  • nLineNum
    Type: UInt32

    [in] Line number within pszFilename of pszOutputString.

  • pszTaskItemText
    Type: String

    [in] Text of the task item.

  • pszLookupKwd
    Type: String

    [in] Lookup keyword for F1 functionality.

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 IVsOutputWindowPane::OutputTaskItemStringEx(
   [in] LPCOLESTR pszOutputString,
   [in] VSTASKPRIORITY nPriority,
   [in] VSTASKCATEGORY nCategory,
   [in] LPCOLESTR pszSubcategory,
   [in] VSTASKBITMAP nBitmap,
   [in] LPCOLESTR pszFilename,
   [in] ULONG nLineNum,
   [in] LPCOLESTR pszTaskItemText,
   [in] LPCOLESTR pszLookupKwd
);

This is an extended version of OutputTaskItemString.

.NET Framework Security

See Also

Reference

IVsOutputWindowPane Interface

Microsoft.VisualStudio.Shell.Interop Namespace