共用方式為


IVsLaunchPadOutputParser.ParseOutputStringForInfo Method

Calls ParseOutputStringForInfo to the launch pad If task item text is returned, the launch pad creates a task list item by using the information it returned. If only filename and line number information is returned, the launch pad adds the line to the output window and uses the filename and line number as the navigation information for the output line.

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

Syntax

'宣告
Function ParseOutputStringForInfo ( _
    pszOutputString As String, _
    <OutAttribute> pbstrFilename As String(), _
    <OutAttribute> pnLineNum As UInteger(), _
    <OutAttribute> pnPriority As UInteger(), _
    <OutAttribute> pbstrTaskItemText As String(), _
    <OutAttribute> pbstrHelpKeyword As String() _
) As Integer
'用途
Dim instance As IVsLaunchPadOutputParser
Dim pszOutputString As String
Dim pbstrFilename As String()
Dim pnLineNum As UInteger()
Dim pnPriority As UInteger()
Dim pbstrTaskItemText As String()
Dim pbstrHelpKeyword As String()
Dim returnValue As Integer

returnValue = instance.ParseOutputStringForInfo(pszOutputString, _
    pbstrFilename, pnLineNum, pnPriority, _
    pbstrTaskItemText, pbstrHelpKeyword)
int ParseOutputStringForInfo(
    string pszOutputString,
    string[] pbstrFilename,
    uint[] pnLineNum,
    uint[] pnPriority,
    string[] pbstrTaskItemText,
    string[] pbstrHelpKeyword
)
int ParseOutputStringForInfo(
    [InAttribute] String^ pszOutputString, 
    [OutAttribute] array<String^>^ pbstrFilename, 
    [OutAttribute] array<unsigned int>^ pnLineNum, 
    [OutAttribute] array<unsigned int>^ pnPriority, 
    [OutAttribute] array<String^>^ pbstrTaskItemText, 
    [OutAttribute] array<String^>^ pbstrHelpKeyword
)
abstract ParseOutputStringForInfo : 
        pszOutputString:string * 
        pbstrFilename:string[] byref * 
        pnLineNum:uint32[] byref * 
        pnPriority:uint32[] byref * 
        pbstrTaskItemText:string[] byref * 
        pbstrHelpKeyword:string[] byref -> int 
function ParseOutputStringForInfo(
    pszOutputString : String, 
    pbstrFilename : String[], 
    pnLineNum : uint[], 
    pnPriority : uint[], 
    pbstrTaskItemText : String[], 
    pbstrHelpKeyword : String[]
) : int

Parameters

  • pszOutputString
    Type: System.String
    [in] One line of output text.
  • pbstrFilename
    Type: array<System.String[]
    [out] Fully qualified file name for task list item (may be nulla null reference (Nothing in Visual Basic)).
  • pnLineNum
    Type: array<System.UInt32[]
    [out] File line number for task list item (may be nulla null reference (Nothing in Visual Basic)).
  • pnPriority
    Type: array<System.UInt32[]
    [out] Priority for task list item (may be nulla null reference (Nothing in Visual Basic)).
  • pbstrTaskItemText
    Type: array<System.String[]
    [out] Description text for task list item (may be nulla null reference (Nothing in Visual Basic)).
  • pbstrHelpKeyword
    Type: array<System.String[]
    [out] Help keyword for task list item (may be nulla null reference (Nothing in Visual Basic)).

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsLaunchPadOutputParser::ParseOutputStringForInfo(
   [in] LPCOLESTR pszOutputString, 
   [out] BSTR *pbstrFilename, 
   [out] ULONG *pnLineNum, 
   [out] ULONG *pnPriority, 
   [out] BSTR *pbstrTaskItemText, 
   [out] BSTR *pbstrHelpKeyword
);

.NET Framework Security

See Also

Reference

IVsLaunchPadOutputParser Interface

IVsLaunchPadOutputParser Members

Microsoft.VisualStudio.Shell.Interop Namespace