Udostępnij za pośrednictwem


Metoda IVsDebugger.ParseFileRedirection — (String, String, IntPtr, IntPtr, IntPtr)

 

Analizuje wiersz polecenia zawarte w ciąg argumentu i zwraca argumenty i uchwyty do wszelkich przekierowania wyjścia.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop (w Microsoft.VisualStudio.Shell.Interop.dll)

Składnia

int ParseFileRedirection(
    string pszArgs,
    out string pbstrArgsProcessed,
    out IntPtr phStdInput,
    out IntPtr phStdOutput,
    out IntPtr phStdError
)
int ParseFileRedirection(
    String^ pszArgs,
    [OutAttribute] String^% pbstrArgsProcessed,
    [OutAttribute] IntPtr% phStdInput,
    [OutAttribute] IntPtr% phStdOutput,
    [OutAttribute] IntPtr% phStdError
)
abstract ParseFileRedirection : 
        pszArgs:string *
        pbstrArgsProcessed:string byref *
        phStdInput:nativeint byref *
        phStdOutput:nativeint byref *
        phStdError:nativeint byref -> int
Function ParseFileRedirection (
    pszArgs As String,
    <OutAttribute> ByRef pbstrArgsProcessed As String,
    <OutAttribute> ByRef phStdInput As IntPtr,
    <OutAttribute> ByRef phStdOutput As IntPtr,
    <OutAttribute> ByRef phStdError As IntPtr
) As Integer

Parametry

  • pszArgs
    [w] Ciąg zawierający wiersza polecenia do analizy.
  • pbstrArgsProcessed
    [out] Wiersz polecenia z pliku kierunkach zwiększały rozmiar.
  • phStdInput
    [out] DOJŚCIE do standardowego pliku wejściowego, biorąc pod uwagę przekierowania.
  • phStdOutput
    [out] DOJŚCIE do pliku standardowych danych wyjściowych, biorąc pod uwagę przekierowania.
  • phStdError
    [out] DOJŚCIE do pliku błędu standardowego, biorąc pod uwagę przekierowania.

Wartość zwracana

Type: System.Int32

Jeśli metoda się powiedzie, zwraca S_OK.Jeśli nie powiedzie się, zwraca kod błędu.

Uwagi

Podpis COM

Z vsshell.idl:

HRESULT IVsDebugger::ParseFileRedirection(
   [in] LPOLESTR pszArgs,
   [out] BSTR *pbstrArgsProcessed,
   [out] HANDLE *phStdInput,
   [out] HANDLE *phStdOutput,
   [out] HANDLE *phStdError
);

Zobacz też

Interfejs IVsDebugger
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku