IVsOutputWindowPane::OutputTaskItemStringEx Method (String^, VSTASKPRIORITY, VSTASKCATEGORY, String^, Int32, String^, UInt32, String^, String^)
Visual Studio 2015
Adds a string to the Output window and a corresponding item to the task list.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int OutputTaskItemStringEx( String^ pszOutputString, VSTASKPRIORITY nPriority, VSTASKCATEGORY nCategory, String^ pszSubcategory, int nBitmap, String^ pszFilename, unsigned int nLineNum, String^ pszTaskItemText, String^ pszLookupKwd )
Parameters
- pszOutputString
-
Type:
System::String^
[in] Output string of the task item.
- nPriority
-
Type:
Microsoft.VisualStudio.Shell.Interop::VSTASKPRIORITY
[in] Priority of the task item whose values are taken from the VSTASKPRIORITY enumeration.
- nCategory
-
Type:
Microsoft.VisualStudio.Shell.Interop::VSTASKCATEGORY
[in] Category of the task item whose values are taken from the VSTASKCATEGORY enumeration.
- pszSubcategory
-
Type:
System::String^
[in] Subcategory of the task.
- nBitmap
-
Type:
System::Int32
[in] Bitmap of the task item whose values are taken from the _vstaskbitmap enumeration.
- pszFilename
-
Type:
System::String^
[in] Name of the file containing pszOutputString.
- nLineNum
-
Type:
System::UInt32
[in] Line number within pszFilename of pszOutputString.
- pszTaskItemText
-
Type:
System::String^
[in] Text of the task item.
- pszLookupKwd
-
Type:
System::String^
[in] Lookup keyword for F1 functionality.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.
Show: