IVsOutputWindowPane.OutputTaskItemStringEx Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a string to the Output window and a corresponding item to the task list.
public:
int OutputTaskItemStringEx(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::String ^ pszTaskItemText, System::String ^ pszLookupKwd);
public:
int OutputTaskItemStringEx(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, Platform::String ^ pszTaskItemText, Platform::String ^ pszLookupKwd);
int OutputTaskItemStringEx(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, std::wstring const & pszTaskItemText, std::wstring const & pszLookupKwd);
public int OutputTaskItemStringEx (string pszOutputString, Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY nPriority, Microsoft.VisualStudio.Shell.Interop.VSTASKCATEGORY nCategory, string pszSubcategory, int nBitmap, string pszFilename, uint nLineNum, string pszTaskItemText, string pszLookupKwd);
abstract member OutputTaskItemStringEx : string * Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY * Microsoft.VisualStudio.Shell.Interop.VSTASKCATEGORY * string * int * string * uint32 * string * string -> int
Public 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
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 within pszFilename
of pszOutputString
.
- pszTaskItemText
- String
[in] Text of the task item.
- pszLookupKwd
- String
[in] Lookup keyword for F1 functionality.
Returns
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.