IVsOutputWindowPane2::OutputTaskItemStringEx2 Method (String^, VSTASKPRIORITY, VSTASKCATEGORY, String^, Int32, String^, UInt32, UInt32, String^, String^, String^)
Adds a string to the Output window and a corresponding item to the error list.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
int OutputTaskItemStringEx2( String^ pszOutputString, VSTASKPRIORITY nPriority, VSTASKCATEGORY nCategory, String^ pszSubcategory, int nBitmap, String^ pszFileName, unsigned int nLineNum, unsigned int nColumn, String^ pszProjectUniqueName, 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 E:Microsoft.VisualStudio.Shell.Interop.VSTASKPRIORITY enumeration.
- nCategory
-
Type:
Microsoft.VisualStudio.Shell.Interop::VSTASKCATEGORY
[in] Category of the task item whose values are taken from the E:Microsoft.VisualStudio.Shell.Interop.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 E:Microsoft.VisualStudio.Shell.Interop._vstaskbitmap enumeration.
- pszFileName
-
Type:
System::String^
[in] Name of the file containing pszOutputString.
- nLineNum
-
Type:
System::UInt32
[in] Line number in pszFilename.
- nColumn
-
Type:
System::UInt32
[in] Zero-based column in pszFilename.
- pszProjectUniqueName
-
Type:
System::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
-
Type:
System::String^
[in] Text of the task item.
- pszLookupKwd
-
Type:
System::String^
VSUC_Usage_LookupF1 keyword string.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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 );