Share via


IVsOutputWindowPane2.OutputTaskItemStringEx2 Method

Definition

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

public:
 int OutputTaskItemStringEx2(System::String ^ pszOutputString, Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY nPriority, Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY nCategory, System::String ^ pszSubcategory, int nBitmap, System::String ^ pszFileName, System::UInt32 nLineNum, System::UInt32 nColumn, System::String ^ pszProjectUniqueName, System::String ^ pszTaskItemText, System::String ^ pszLookupKwd);
public:
 int OutputTaskItemStringEx2(Platform::String ^ pszOutputString, Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY nPriority, Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY nCategory, Platform::String ^ pszSubcategory, int nBitmap, Platform::String ^ pszFileName, unsigned int nLineNum, unsigned int nColumn, Platform::String ^ pszProjectUniqueName, Platform::String ^ pszTaskItemText, Platform::String ^ pszLookupKwd);
int OutputTaskItemStringEx2(std::wstring const & pszOutputString, Microsoft::VisualStudio::Shell::Interop::VSTASKPRIORITY nPriority, Microsoft::VisualStudio::Shell::Interop::VSTASKCATEGORY nCategory, std::wstring const & pszSubcategory, int nBitmap, std::wstring const & pszFileName, unsigned int nLineNum, unsigned int nColumn, std::wstring const & pszProjectUniqueName, std::wstring const & pszTaskItemText, std::wstring const & pszLookupKwd);
public int OutputTaskItemStringEx2 (string pszOutputString, Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY nPriority, Microsoft.VisualStudio.Shell.Interop.VSTASKCATEGORY nCategory, string pszSubcategory, int nBitmap, string pszFileName, uint nLineNum, uint nColumn, string pszProjectUniqueName, string pszTaskItemText, string pszLookupKwd);
abstract member OutputTaskItemStringEx2 : string * Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY * Microsoft.VisualStudio.Shell.Interop.VSTASKCATEGORY * string * int * string * uint32 * uint32 * string * string * string -> int
Public Function OutputTaskItemStringEx2 (pszOutputString As String, nPriority As VSTASKPRIORITY, nCategory As VSTASKCATEGORY, pszSubcategory As String, nBitmap As Integer, pszFileName As String, nLineNum As UInteger, nColumn As UInteger, pszProjectUniqueName As String, pszTaskItemText As String, pszLookupKwd As String) As Integer

Parameters

pszOutputString
String

[in] Output string of the task item.

nPriority
VSTASKPRIORITY

[in] Priority of the task item whose values are taken from the VSTASKPRIORITY enumeration.

nCategory
VSTASKCATEGORY

[in] Category of the task item whose values are taken from the VSTASKCATEGORY enumeration.

pszSubcategory
String

[in] Subcategory of the task.

nBitmap
Int32

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

pszFileName
String

[in] Name of the file containing pszOutputString.

nLineNum
UInt32

[in] Line number in pszFilename.

nColumn
UInt32

[in] Zero-based column in pszFilename.

pszProjectUniqueName
String

[in] The unique name of the project for the Error List entry. May be null if no project is associated with the error.

pszTaskItemText
String

[in] Text of the task item.

pszLookupKwd
String

VSUC_Usage_LookupF1 keyword string.

Returns

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

Remarks

COM Signature

From vsshell90.idl:

HRESULT IVsOutputWindowPane::OutputTaskItemStringEx2(  
   [in] LPCOLESTR pszOutputString,  
   [in] VSTASKPRIORITY nPriority,  
   [in] VSTASKCATEGORY nCategory,  
   [in] LPCOLESTR pszSubcategory,  
   [in] VSTASKBITMAP nBitmap,  
   [in] LPCOLESTR pszFilename,  
   [in] ULONG nLineNum,  
   [in] ULONG nColumn,  
   [in] LPCOLESTR pszProjectUniqueName,  
   [in] LPCOLESTR pszTaskItemText,  
   [in] LPCOLESTR pszLookupKwd  
);  

Applies to